Skip to content

Commit

Permalink
warning: unexpected cfg condition value: cargo-clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Oct 1, 2024
1 parent b753953 commit 3832a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,6 @@
//! ```

#![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names))]


extern crate json_deserializer;
#[macro_use]
extern crate serde_derive;
Expand Down
6 changes: 3 additions & 3 deletions src/ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ impl RegistryPackage {

// otherwise only want to install prerelease if the current version is a prerelease with the same maj.min.patch
match self.version.as_ref() {
Some(cur) =>
cur.is_prerelease() && cur.major == version_to_install.major && cur.minor == version_to_install.minor &&
cur.patch == version_to_install.patch,
Some(cur) => {
cur.is_prerelease() && cur.major == version_to_install.major && cur.minor == version_to_install.minor && cur.patch == version_to_install.patch
}
None => false,
}
}
Expand Down

0 comments on commit 3832a05

Please sign in to comment.