Skip to content

Commit

Permalink
Remove unneeded reference
Browse files Browse the repository at this point in the history
clippy emits:

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

As suggested, remove the explicit reference.
  • Loading branch information
tcharding committed Jun 23, 2022
1 parent fd4239f commit eccd401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockdata/script.rs
Expand Up @@ -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())
}
}
}
Expand Down

0 comments on commit eccd401

Please sign in to comment.