mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-18 15:23:13 +00:00
style: run cargo fmt to resolve CI failure
This commit is contained in:
+10
-14
@@ -168,24 +168,20 @@ mod tests {
|
||||
assert!(
|
||||
authorize_exact_path(Path::new("owned.bin"), std::slice::from_ref(&owned)).is_err()
|
||||
);
|
||||
assert!(
|
||||
authorize_exact_path(
|
||||
&root.path().join("sub/../owned.bin"),
|
||||
std::slice::from_ref(&owned)
|
||||
)
|
||||
.is_err()
|
||||
);
|
||||
assert!(authorize_exact_path(
|
||||
&root.path().join("sub/../owned.bin"),
|
||||
std::slice::from_ref(&owned)
|
||||
)
|
||||
.is_err());
|
||||
assert!(
|
||||
authorize_exact_path(Path::new("/etc/hosts"), std::slice::from_ref(&owned)).is_err()
|
||||
);
|
||||
if let Some(home) = std::env::var_os("HOME") {
|
||||
assert!(
|
||||
authorize_exact_path(
|
||||
&PathBuf::from(home).join(".ssh"),
|
||||
std::slice::from_ref(&owned)
|
||||
)
|
||||
.is_err()
|
||||
);
|
||||
assert!(authorize_exact_path(
|
||||
&PathBuf::from(home).join(".ssh"),
|
||||
std::slice::from_ref(&owned)
|
||||
)
|
||||
.is_err());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user