Skip to content

Commit 0c4b141

Browse files
committed
Remove unneeded reference
clippy emits: warning: this expression creates a reference which is immediately dereferenced by the compiler As suggested, remove the explicit reference.
1 parent 1c3dee4 commit 0c4b141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blockdata/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ impl serde::Serialize for Script {
10851085
if serializer.is_human_readable() {
10861086
serializer.serialize_str(&format!("{:x}", self))
10871087
} else {
1088-
serializer.serialize_bytes(&self.as_bytes())
1088+
serializer.serialize_bytes(self.as_bytes())
10891089
}
10901090
}
10911091
}

0 commit comments

Comments
 (0)