Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Fix a few clippy lints from new Rust 1.59 version #256

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented Feb 24, 2022

Fix a few clippy lints from new Rust 1.59 version


labels.insert(k.into(), v.into());
}
// Lookup the cmd embedded in commit metadata
let cmd = commit_meta.lookup::<Vec<String>>(ostree::COMMIT_META_CONTAINER_CMD)?;
// But support it being overridden by CLI options
let cmd = config.cmd.as_ref().or_else(|| cmd.as_ref());
let cmd = config.cmd.as_ref().or(cmd.as_ref());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clippy is not liking this change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah awesome, old clippy doesn't like new code, new clippy doesn't like old code. Well, we can deal with this one when we update the CI pinned clippy.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cgwalters cgwalters changed the title Minor rust/clippy 1.59 patches Fix a few clippy lints from new Rust 1.59 version Feb 24, 2022
@jlebon jlebon merged commit 073ee23 into ostreedev:main Feb 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants