Skip to content

Commit

Permalink
Merge pull request #215 from saschagrunert/clippy
Browse files Browse the repository at this point in the history
Fix clippy false positive
  • Loading branch information
saschagrunert authored Sep 11, 2024
2 parents fa8a533 + 4a76ed1 commit 6cbebf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/miscellaneous.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ pub fn get_default_mounts() -> Vec<Mount> {
}

/// utility function to generate default rootless config for mounts.
// TODO(saschagrunert): remove once clippy does not report this false positive any more. We cannot
// use `inspect` instead of `map` because we need to mutate the mounts.
// Ref: https://github.com/rust-lang/rust-clippy/issues/13185
#[allow(clippy::manual_inspect)]
pub fn get_rootless_mounts() -> Vec<Mount> {
let mut mounts = get_default_mounts();
mounts
Expand Down

0 comments on commit 6cbebf8

Please sign in to comment.