mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Use (fd, file)
as the key
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
d70ae181b5
commit
479d98c8b9
@ -315,6 +315,12 @@ impl<T: ?Sized> From<KeyableWeak<T>> for Weak<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: ?Sized> Clone for KeyableWeak<T> {
|
||||
fn clone(&self) -> Self {
|
||||
Self(self.0.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: ?Sized + fmt::Debug> fmt::Debug for KeyableWeak<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "(KeyableWeak)")
|
||||
|
Reference in New Issue
Block a user