Skip to content

Commit b5d4f4f

Browse files
authored
fix: resolve clippy::len_zero lint in Instructions::size_hint
1 parent eb80f6c commit b5d4f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/src/blockdata/script/instruction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl<'a> Iterator for Instructions<'a> {
190190

191191
#[inline]
192192
fn size_hint(&self) -> (usize, Option<usize>) {
193-
if self.data.len() == 0 {
193+
if self.data.as_slice().is_empty() {
194194
(0, Some(0))
195195
} else {
196196
// There will not be more instructions than bytes

0 commit comments

Comments
 (0)