diff --git a/src/lib.rs b/src/lib.rs index 6a3983c..02aa5e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ #![no_std] #![feature(doc_auto_cfg)] +#![feature(const_trait_impl)] #[cfg(feature = "ramdisk")] pub mod ramdisk; diff --git a/src/ramdisk.rs b/src/ramdisk.rs index 9a385ca..3df5568 100644 --- a/src/ramdisk.rs +++ b/src/ramdisk.rs @@ -44,7 +44,7 @@ impl RamDisk { } } -impl BaseDriverOps for RamDisk { +impl const BaseDriverOps for RamDisk { fn device_type(&self) -> DeviceType { DeviceType::Block }