Skip to content

Commit

Permalink
SFT-UNKN: Fix take_split method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandudey committed Jan 18, 2025
1 parent df39e2e commit 6619153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nom-embedded-storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ where
Err(_) => return None,
};

self.pos += 1;
match storage.read(offset, &mut buf) {
Ok(()) => {
self.pos += 1;
log::trace!("next byte: value={}", buf[0]);
Some(buf[0])
}
Expand Down Expand Up @@ -303,7 +303,7 @@ impl<S, const N: usize> InputTake for Bytes<S, N> {

log::trace!("prefix length {}, suffix length {}", prefix.len(), suffix.len());

(prefix, suffix)
(suffix, prefix)
}
}

Expand Down

0 comments on commit 6619153

Please sign in to comment.