build: upgrade rust and set MSRV to 1.75 (#261)

This commit is contained in:
Myriad-Dreamin 2024-05-08 20:48:35 +08:00 committed by GitHub
parent 398f2afb04
commit ca5d8f61cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View file

@ -102,10 +102,10 @@ where
}
}
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V>
pub fn get<Q>(&self, k: &Q) -> Option<&V>
where
K: Borrow<Q>,
Q: Hash + Eq,
Q: Hash + Eq + ?Sized,
{
self.map.borrow().get(k)
}

View file

@ -269,7 +269,7 @@ impl<Inputs, Output> ComputingNode<Inputs, Output> {
drop(input_cmp);
log::info!("{}({:?}): compute", self.name, inputs.compute_debug_repr());
let output = compute(s, inputs.clone());
*self.output.write() = output.clone();
self.output.write().clone_from(&output);
*self.inputs.write() = Some(inputs);
output
}