mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Support T:?Sized as type parameter for Mutex, SpinLock, RwLock, and RwMutex
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
92a9f5616e
commit
dac41e9a2f
@ -102,7 +102,7 @@ impl NetworkDevice {
|
||||
|
||||
aster_network::register_device(
|
||||
super::DEVICE_NAME.to_string(),
|
||||
Arc::new(SpinLock::new(Box::new(device))),
|
||||
Arc::new(SpinLock::new(device)),
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user