1
0
Fork 0
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:
utam0k 2023-04-09 01:41:35 +00:00
parent cb1340f072
commit 030acdb414
No known key found for this signature in database
GPG Key ID: 2DB29D2A21B41E0E
2 changed files with 2 additions and 3 deletions

View File

@ -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();

View File

@ -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:?}"),
));
))
}