Changed tabs back into spaces to fix formatting.
This commit is contained in:
parent
0df7f00a04
commit
0f8ee171b2
@ -2287,8 +2287,8 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
|
|||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "map_entry_replace", issue = "44286")]
|
#[unstable(feature = "map_entry_replace", issue = "44286")]
|
||||||
pub fn replace_key(mut self) -> K {
|
pub fn replace_key(mut self) -> K {
|
||||||
let (old_key, _) = self.elem.read_mut();
|
let (old_key, _) = self.elem.read_mut();
|
||||||
mem::replace(old_key, self.key.unwrap())
|
mem::replace(old_key, self.key.unwrap())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user