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 <edef@edef.eu>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
edef 2023-10-09 18:30:09 +00:00
parent 910adb50b8
commit 17d6f4320f

View file

@ -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),