Address clippy warnings

This commit is contained in:
topjohnwu
2024-02-27 21:03:34 -08:00
parent 715284b70d
commit 987e5f5413
2 changed files with 2 additions and 2 deletions

View File

@ -617,7 +617,7 @@ pub fn cpio_commands(argc: i32, argv: *const *const c_char) -> bool {
return Err(log_err!("invalid arguments"));
}
cpio.extract(
paths.get(0).map(|x| x.as_str()),
paths.first().map(|x| x.as_str()),
paths.get(1).map(|x| x.as_str()),
)?;
}