1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tr: fix clippy warning

This commit is contained in:
Jan Scheer 2021-05-02 13:53:11 +02:00
parent 000bd73edc
commit acd30526a2

View file

@ -217,8 +217,8 @@ fn translate_input<T: SymbolTranslator>(
// Set `prev_c` to the post-translate character. This
// allows the squeeze operation to correctly function
// after the translate operation.
if res.is_some() {
prev_c = res.unwrap();
if let Some(rc) = res {
prev_c = rc;
}
res
});