Skip to content

Commit

Permalink
chore: remove useless clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Armavica committed Jan 23, 2025
1 parent 4860c06 commit 68c023e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl Gillespie {
let save_indices: Vec<_> = match &var_names {
Some(x) => x
.iter()
.map(|key| self.species.get(key).unwrap().clone())
.map(|key| *self.species.get(key).unwrap())
.collect(),
None => (0..self.species.len()).collect(),
};
Expand Down

0 comments on commit 68c023e

Please sign in to comment.