Fix clippy warnings in kernel crate

This commit is contained in:
jiangjianfeng
2025-06-06 07:06:30 +00:00
committed by Tate, Hongliang Tian
parent 81ba3b645b
commit f0957d2f54
42 changed files with 91 additions and 94 deletions

View File

@ -23,5 +23,5 @@ pub fn singleton() -> &'static Arc<SysFs> {
/// Should be called during kernel filesystem initialization, *after* aster_systree::init().
pub fn init() {
// Ensure systree is initialized first. This should be handled by the kernel's init order.
SYSFS_SINGLETON.call_once(|| SysFs::new());
SYSFS_SINGLETON.call_once(SysFs::new);
}