Skip to content

Commit

Permalink
remove extra defensive code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurk committed Oct 14, 2023
1 parent beda08b commit ad30a6e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/toolkit/deserializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ where
while current_position < input.len() {
let slice = &input[current_position..];
current_position += slice.chars().next().unwrap().len_utf8();
if maybe_nodes.is_empty() {
current_position = branch.fallback(slice)?;
fallback_position = current_position;
continue;
}
for parser in &maybe_nodes {
if let Some(node) = parser(slice, branch.context()) {
while fallback_position != current_position - 1 {
Expand Down

0 comments on commit ad30a6e

Please sign in to comment.