mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
tr: fix clippy warning
This commit is contained in:
parent
000bd73edc
commit
acd30526a2
1 changed files with 2 additions and 2 deletions
|
@ -217,8 +217,8 @@ fn translate_input<T: SymbolTranslator>(
|
||||||
// Set `prev_c` to the post-translate character. This
|
// Set `prev_c` to the post-translate character. This
|
||||||
// allows the squeeze operation to correctly function
|
// allows the squeeze operation to correctly function
|
||||||
// after the translate operation.
|
// after the translate operation.
|
||||||
if res.is_some() {
|
if let Some(rc) = res {
|
||||||
prev_c = res.unwrap();
|
prev_c = rc;
|
||||||
}
|
}
|
||||||
res
|
res
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue