mirror of
https://github.com/uutils/coreutils
synced 2024-12-18 00:53:25 +00:00
Something wrong with rust iterator...
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
parent
5a0870bb30
commit
43dbff7c56
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ impl TranslateOperation {
|
|||
if truncate_set1_flag {
|
||||
set1_solved.truncate(set2_solved.len());
|
||||
}
|
||||
let fallback = set2.iter().map(Sequence::last).last().flatten().expect(
|
||||
let fallback = set2.last().map(Sequence::last).flatten().expect(
|
||||
format!(
|
||||
"{}: when not truncating set1, string2 must be non-empty",
|
||||
executable!()
|
||||
|
|
Loading…
Reference in a new issue