diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:18:32 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:18:32 +0200 |
commit | d27911513b1b6fc4d48d4a8f316e780b765f6c7a (patch) | |
tree | 6179c54a9d3089dc0a8d68d83a413f7740a8d3da /src/genlist.rs | |
parent | 3592fb5dff0384ed82c5146059caa6840263ebbe (diff) | |
download | obnam2-d27911513b1b6fc4d48d4a8f316e780b765f6c7a.tar.gz |
refactor: drop unnecessary clones
Diffstat (limited to 'src/genlist.rs')
-rw-r--r-- | src/genlist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genlist.rs b/src/genlist.rs index 5eec248..dbc437a 100644 --- a/src/genlist.rs +++ b/src/genlist.rs @@ -13,7 +13,7 @@ pub enum GenerationListError { impl GenerationList { pub fn new(gens: Vec<FinishedGeneration>) -> Self { - let mut list = gens.clone(); + let mut list = gens; list.sort_by_cached_key(|gen| gen.ended().to_string()); Self { list } } |