Remove unneeded reference

clippy emits:

 warning: this expression creates a reference which is immediately
 dereferenced by the compiler

As suggested, remove the explicit reference.
This commit is contained in:
Tobin C. Harding 2022-06-23 13:56:28 +10:00
parent fd4239f1d2
commit eccd401fc4
1 changed files with 1 additions and 1 deletions

View File

@ -1085,7 +1085,7 @@ impl serde::Serialize for Script {
if serializer.is_human_readable() {
serializer.serialize_str(&format!("{:x}", self))
} else {
serializer.serialize_bytes(&self.as_bytes())
serializer.serialize_bytes(self.as_bytes())
}
}
}