about summary refs log tree commit diff
path: root/tvix/nix-compat/src/store_path
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2023-10-09T18·30+0000
committeredef <edef@edef.eu>2023-10-10T08·57+0000
commit17d6f4320f1dddf2470bb8a4e6757c9445d4884e (patch)
treeab1090178c77ffcdf53601153c487cbbbc73dfdb /tvix/nix-compat/src/store_path
parent910adb50b8c1856f54f05e23456e1e5b3249acf2 (diff)
fix(tvix/nix-compat): drop unnecessary reference taking r/6763
Found by Clippy, which we should probably run in CI.

Change-Id: Id79c30b63f681021ab79358e02d29454d43c0aa6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9614
Autosubmit: edef <edef@edef.eu>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat/src/store_path')
-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),