Skip to content

Commit 4461085

Browse files
committed
VariableMap: Use refs for args again
1 parent c4b3d76 commit 4461085

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/simulation/optimisation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ impl VariableMap {
3535
/// Get the [`Variable`] corresponding to the given parameters.
3636
// **TODO:** Remove line below when we're using this
3737
#[allow(dead_code)]
38-
fn get(&self, asset: AssetRef, time_slice: TimeSliceID) -> Variable {
39-
let key = (asset, time_slice);
38+
fn get(&self, asset: &AssetRef, time_slice: &TimeSliceID) -> Variable {
39+
let key = (asset.clone(), time_slice.clone());
4040

4141
*self
4242
.0

0 commit comments

Comments
 (0)