mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-21 17:34:31 +00:00
safe-path: Do cargo check and reduce warnings
Reduce warings caused by non-formatted or unchecked operations. Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
This commit is contained in:
parent
683d673f4f
commit
e05197e81c
@ -355,6 +355,7 @@ mod tests {
|
|||||||
.read(false)
|
.read(false)
|
||||||
.write(true)
|
.write(true)
|
||||||
.create(true)
|
.create(true)
|
||||||
|
.truncate(true)
|
||||||
.mode(0o200)
|
.mode(0o200)
|
||||||
.open(&path)
|
.open(&path)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
@ -376,6 +377,7 @@ mod tests {
|
|||||||
.read(false)
|
.read(false)
|
||||||
.write(true)
|
.write(true)
|
||||||
.create(true)
|
.create(true)
|
||||||
|
.truncate(true)
|
||||||
.mode(0o200)
|
.mode(0o200)
|
||||||
.open(&path)
|
.open(&path)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user