Skip to content

Commit

Permalink
Revert new clone
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Jan 12, 2024
1 parent 7fbf443 commit be20a8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions necsim/plugins/species/src/location/feather/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ impl LocationSpeciesFeatherReporter {
pub(super) fn store_individual_origin(
&mut self,
lineage: &GlobalLineageReference,
origin: Location,
origin: &Location,
) {
self.origins.insert(lineage.clone(), origin);
self.origins.insert(lineage.clone(), origin.clone());
}

pub(super) fn store_individual_speciation(
Expand Down
4 changes: 2 additions & 2 deletions necsim/plugins/species/src/location/feather/reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ impl Reporter for LocationSpeciesFeatherReporter {
self.init = true;

if speciation.prior_time == 0.0_f64 {
self.store_individual_origin(&speciation.global_lineage_reference, speciation.origin.location().clone());
self.store_individual_origin(&speciation.global_lineage_reference, speciation.origin.location());
}

if Some(speciation) == self.last_speciation_event.as_ref() {
Expand All @@ -31,7 +31,7 @@ impl Reporter for LocationSpeciesFeatherReporter {
self.init = true;

if dispersal.prior_time == 0.0_f64 {
self.store_individual_origin(&dispersal.global_lineage_reference, dispersal.origin.location().clone());
self.store_individual_origin(&dispersal.global_lineage_reference, dispersal.origin.location());
}

// Only update the active frontier with `deduplication_probability`
Expand Down

0 comments on commit be20a8d

Please sign in to comment.