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:
parent
624cda07b3
commit
d192052519
|
@ -443,7 +443,7 @@ impl Script {
|
||||||
pub fn is_empty(&self) -> bool { self.0.is_empty() }
|
pub fn is_empty(&self) -> bool { self.0.is_empty() }
|
||||||
|
|
||||||
/// Returns the script data as a byte slice.
|
/// 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.
|
/// Returns a copy of the script data.
|
||||||
pub fn to_bytes(&self) -> Vec<u8> { self.0.clone().into_vec() }
|
pub fn to_bytes(&self) -> Vec<u8> { self.0.clone().into_vec() }
|
||||||
|
|
Loading…
Reference in New Issue