1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

sort: remove an unneeded clone()

This commit is contained in:
Michael Debertol 2021-04-29 18:03:12 +02:00
parent a4813c2646
commit fecbf3dc85

View file

@ -1222,7 +1222,7 @@ fn ext_sort_by(unsorted: Vec<Line>, settings: GlobalSettings) -> Vec<Line> {
settings.clone(), settings.clone(),
); );
let iter = external_sorter let iter = external_sorter
.sort_by(unsorted.into_iter(), settings.clone()) .sort_by(unsorted.into_iter(), settings)
.unwrap() .unwrap()
.map(|x| x.unwrap()) .map(|x| x.unwrap())
.collect::<Vec<Line>>(); .collect::<Vec<Line>>();