Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 11, 2024
1 parent ba8cae8 commit 5d408bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/bin/set-version/errors.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use std::fmt::Display;

pub use cargo_edit::CargoResult;
pub use cargo_edit::CliResult;
pub use cargo_edit::Context;

pub use cargo_edit::Error;

/// User requested to downgrade a crate
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl Manifest {
path: &[String],
insert_if_not_exists: bool,
) -> CargoResult<&'a mut toml_edit::Item> {
if let Some(segment) = path.get(0) {
if let Some(segment) = path.first() {
let value = if insert_if_not_exists {
input[&segment].or_insert(toml_edit::table())
} else {
Expand Down

0 comments on commit 5d408bc

Please sign in to comment.