Bläddra i källkod

fmt: cargo fmt the symlink-checksum test (missed before push)

Alexander Korolev 3 veckor sedan
förälder
incheckning
d222208590
1 ändrade filer med 2 tillägg och 6 borttagningar
  1. 2 6
      src/docker/tests.rs

+ 2 - 6
src/docker/tests.rs

@@ -452,10 +452,7 @@ mod sglang_tests;
 fn dir_checksum_hashes_symlinks_by_target_text() {
     use super::build_dir::compute_dir_checksum;
 
-    let root = std::env::temp_dir().join(format!(
-        "sm121-chksum-link-{}",
-        std::process::id()
-    ));
+    let root = std::env::temp_dir().join(format!("sm121-chksum-link-{}", std::process::id()));
     let dir = root.join("ctx");
     let _ = std::fs::remove_dir_all(&root);
     // Linked target lives OUTSIDE the hashed tree (like an upstream submodule
@@ -472,8 +469,7 @@ fn dir_checksum_hashes_symlinks_by_target_text() {
 
     // The target lives outside and is never followed: edits there do not
     // move the digest.
-    std::fs::write(root.join("linked/status-server.py"), b"# changed")
-        .unwrap();
+    std::fs::write(root.join("linked/status-server.py"), b"# changed").unwrap();
     assert_eq!(first, compute_dir_checksum(&dir).unwrap());
 
     // The link's own text is part of the digest: retarget -> different hash.