Support T:?Sized as type parameter for Mutex, SpinLock, RwLock, and RwMutex

This commit is contained in:
Fabing Li
2024-04-12 13:00:19 +08:00
committed by Tate, Hongliang Tian
parent 92a9f5616e
commit dac41e9a2f
8 changed files with 98 additions and 90 deletions

View File

@ -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(())
}