mirror of
https://github.com/containers/youki
synced 2024-06-08 15:56:16 +02:00
Fix the warns from lint
Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
parent
cb1340f072
commit
030acdb414
|
@ -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();
|
||||
|
||||
|
|
|
@ -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:?}"),
|
||||
));
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue