Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and gdesmott committed Aug 17, 2021
1 parent 53fe300 commit 12195e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl Dependencies {
.flatten()
.map(|s| s.as_str())
.collect::<Vec<_>>();
v.sort();
v.sort_unstable();
v.dedup();
v
}
Expand Down
2 changes: 1 addition & 1 deletion src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl VersionOverrideBuilder {
fn build(self) -> Result<VersionOverride, VersionOverrideBuilderError> {
let version = self
.version
.ok_or_else(|| VersionOverrideBuilderError::MissingVersionField)?;
.ok_or(VersionOverrideBuilderError::MissingVersionField)?;

Ok(VersionOverride {
key: self.version_id,
Expand Down

0 comments on commit 12195e8

Please sign in to comment.