Remove unnecessary dereference

Clippy emits:

 warning: deref which would be done by auto-deref

As suggested, remove the unnecessary deref (`*`).
This commit is contained in:
Tobin C. Harding 2022-11-04 11:45:57 +11:00
parent 624cda07b3
commit d192052519
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ impl Script {
pub fn is_empty(&self) -> bool { self.0.is_empty() }
/// Returns the script data as a byte slice.
pub fn as_bytes(&self) -> &[u8] { &*self.0 }
pub fn as_bytes(&self) -> &[u8] { &self.0 }
/// Returns a copy of the script data.
pub fn to_bytes(&self) -> Vec<u8> { self.0.clone().into_vec() }