about summary refs log tree commit diff
path: root/tvix/nix-compat/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-11-19T16·50+0200
committerclbot <clbot@tvl.fyi>2023-11-19T21·58+0000
commit6039b97b559511858776d2750eeeb2ae0e6b7e77 (patch)
tree3d4293afcf518878b39a81b38b22719e9294f069 /tvix/nix-compat/src
parentbe48ba75abf50e62fee8bd0540008a7de14597d7 (diff)
refactor(tvix/nix-compat): move narinfo into separate mod r/7039
Change-Id: Id85f979e46946da0345483cbbc6de3dd29c94c63
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10077
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/nix-compat/src')
-rw-r--r--tvix/nix-compat/src/narinfo/mod.rs (renamed from tvix/nix-compat/src/narinfo.rs)6
1 files changed, 4 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/narinfo.rs b/tvix/nix-compat/src/narinfo/mod.rs
index dc1c6f181bc9..2392b89737d4 100644
--- a/tvix/nix-compat/src/narinfo.rs
+++ b/tvix/nix-compat/src/narinfo/mod.rs
@@ -509,8 +509,10 @@ mod test {
 
     lazy_static! {
         static ref CASES: &'static [&'static str] = {
-            let data = zstd::decode_all(io::Cursor::new(include_bytes!("../testdata/narinfo.zst")))
-                .unwrap();
+            let data = zstd::decode_all(io::Cursor::new(include_bytes!(
+                "../../testdata/narinfo.zst"
+            )))
+            .unwrap();
             let data = str::from_utf8(Vec::leak(data)).unwrap();
             Vec::leak(
                 data.split_inclusive("\n\n")