about summary refs log tree commit diff
path: root/tvix/nix-compat/src/nar/writer/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src/nar/writer/sync.rs')
-rw-r--r--tvix/nix-compat/src/nar/writer/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/nar/writer/sync.rs b/tvix/nix-compat/src/nar/writer/sync.rs
index 071aab831c20..6270129028fa 100644
--- a/tvix/nix-compat/src/nar/writer/sync.rs
+++ b/tvix/nix-compat/src/nar/writer/sync.rs
@@ -29,7 +29,6 @@
 //! ```
 
 use crate::nar::wire;
-use bstr::ByteSlice;
 use std::io::{
     self, BufRead,
     ErrorKind::{InvalidInput, UnexpectedEof},
@@ -186,6 +185,7 @@ impl<'a, 'w> Directory<'a, 'w> {
             Some(ref mut _prev_name) => {
                 #[cfg(debug_assertions)]
                 {
+                    use bstr::ByteSlice;
                     assert!(
                         &**_prev_name < name,
                         "misordered names: {:?} >= {:?}",