mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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 {
|
if truncate_set1_flag {
|
||||||
set1_solved.truncate(set2_solved.len());
|
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!(
|
format!(
|
||||||
"{}: when not truncating set1, string2 must be non-empty",
|
"{}: when not truncating set1, string2 must be non-empty",
|
||||||
executable!()
|
executable!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue