mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Some wiggling
This commit is contained in:
parent
86635752af
commit
2706b2494d
|
@ -163,7 +163,7 @@ pub struct VacantEntry<'a, K: 'a, V: 'a> {
|
|||
}
|
||||
|
||||
impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
|
||||
pub fn insert(self, value: V)
|
||||
fn insert(self, value: V)
|
||||
where
|
||||
K: Hash + Eq,
|
||||
{
|
||||
|
@ -195,7 +195,7 @@ where
|
|||
Entry::Occupied(_) => {}
|
||||
Entry::Vacant(e) => {
|
||||
let value = f(&e.key);
|
||||
e.map.insert(e.key, value);
|
||||
e.insert(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue