fmt: apply rustfmt
This commit is contained in:
@@ -1430,11 +1430,8 @@ mod chroot_cleanup_tests {
|
|||||||
let chroot = dir.path().join("chroot");
|
let chroot = dir.path().join("chroot");
|
||||||
std::fs::create_dir_all(chroot.join("dev")).unwrap();
|
std::fs::create_dir_all(chroot.join("dev")).unwrap();
|
||||||
for (name, _, _) in EphemeralContextGuard::DEVICE_NODES {
|
for (name, _, _) in EphemeralContextGuard::DEVICE_NODES {
|
||||||
std::os::unix::fs::symlink(
|
std::os::unix::fs::symlink(format!("/dev/{name}"), chroot.join("dev").join(name))
|
||||||
format!("/dev/{name}"),
|
.unwrap();
|
||||||
chroot.join("dev").join(name),
|
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert!(EphemeralContextGuard::device_nodes_ready(&chroot));
|
assert!(EphemeralContextGuard::device_nodes_ready(&chroot));
|
||||||
|
|||||||
Reference in New Issue
Block a user