about summary refs log tree commit diff
path: root/tvix/nix-compat/src/store_path/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src/store_path/mod.rs')
-rw-r--r--tvix/nix-compat/src/store_path/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs
index d3317b67f62e..bd856b376522 100644
--- a/tvix/nix-compat/src/store_path/mod.rs
+++ b/tvix/nix-compat/src/store_path/mod.rs
@@ -31,7 +31,7 @@ pub enum Error {
     InvalidLength(),
     #[error(
         "Invalid name: \"{}\", character at position {} is invalid",
-        std::str::from_utf8(&.0).unwrap_or(&BASE64.encode(.0)),
+        std::str::from_utf8(.0).unwrap_or(&BASE64.encode(.0)),
         .1,
     )]
     InvalidName(Vec<u8>, usize),