We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4b3d76 commit 4461085Copy full SHA for 4461085
1 file changed
src/simulation/optimisation.rs
@@ -35,8 +35,8 @@ impl VariableMap {
35
/// Get the [`Variable`] corresponding to the given parameters.
36
// **TODO:** Remove line below when we're using this
37
#[allow(dead_code)]
38
- fn get(&self, asset: AssetRef, time_slice: TimeSliceID) -> Variable {
39
- let key = (asset, time_slice);
+ fn get(&self, asset: &AssetRef, time_slice: &TimeSliceID) -> Variable {
+ let key = (asset.clone(), time_slice.clone());
40
41
*self
42
.0
0 commit comments