Skip to content

Commit

Permalink
Fix the warns from lint
Browse files Browse the repository at this point in the history
Signed-off-by: utam0k <k0ma@utam0k.jp>
  • Loading branch information
utam0k committed Apr 9, 2023
1 parent cb1340f commit 030acdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ pub fn attach_controller(cgroup_root: &Path, cgroup_path: &Path, controller: &st

let mut components = cgroup_path
.components()
.into_iter()
.filter(|c| c.ne(&RootDir))
.peekable();

Expand Down
4 changes: 2 additions & 2 deletions tests/rust-integration-tests/runtimetest/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ pub fn test_mount_rsuid_option(path: &str) -> Result<(), std::io::Error> {
if suid && sgid {
return Ok(());
}
return Err(std::io::Error::new(
Err(std::io::Error::new(
std::io::ErrorKind::Other,
format!("rsuid error {path:?}"),
));
))
}

0 comments on commit 030acdb

Please sign in to comment.