Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 4bbedc3

Browse files
committed
fixup: use local variable instead of fn call
1 parent 3dc8dfc commit 4bbedc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<'a> DoubleEndedIterator for HexIterator<'a> {
108108
fn next_back(&mut self) -> Option<Result<u8, Error>> {
109109
let current_len = self.sl.len();
110110
if current_len % 2 == 1 {
111-
Some(Err(Error::OddLengthString(self.sl.len())))
111+
Some(Err(Error::OddLengthString(current_len)))
112112
} else if self.sl.is_empty() {
113113
None
114114
} else {

0 commit comments

Comments
 (0)