From 17d6f4320f1dddf2470bb8a4e6757c9445d4884e Mon Sep 17 00:00:00 2001 From: edef Date: Mon, 9 Oct 2023 18:30:09 +0000 Subject: fix(tvix/nix-compat): drop unnecessary reference taking Found by Clippy, which we should probably run in CI. Change-Id: Id79c30b63f681021ab79358e02d29454d43c0aa6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9614 Autosubmit: edef Tested-by: BuildkiteCI Reviewed-by: flokli --- tvix/nix-compat/src/store_path/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, usize), -- cgit 1.4.1