refactor/polish ~ fix `cargo clippy` complaints (map => if let)
@@ -292,8 +292,8 @@ impl SubParser {
}
}
} else {
- n_ch.map(|x| it.put_back(x));
- preface.map(|x| it.put_back(x));
+ if let Some(x) = n_ch { it.put_back(x) };
+ if let Some(x) = preface { it.put_back(x) };
false
}
}
