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:
parent
fd4239f1d2
commit
eccd401fc4
|
@ -1085,7 +1085,7 @@ impl serde::Serialize for Script {
|
||||||
if serializer.is_human_readable() {
|
if serializer.is_human_readable() {
|
||||||
serializer.serialize_str(&format!("{:x}", self))
|
serializer.serialize_str(&format!("{:x}", self))
|
||||||
} else {
|
} else {
|
||||||
serializer.serialize_bytes(&self.as_bytes())
|
serializer.serialize_bytes(self.as_bytes())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue