Skip to content

Commit

Permalink
Remove impl const and ~const in the standard library
Browse files Browse the repository at this point in the history
Otherwise it will fail to compile on nightly-2023-04-19

See rust-lang/rust#110395
  • Loading branch information
equation314 committed Apr 20, 2023
1 parent ecce360 commit 0a4dfa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![no_std]
#![feature(doc_auto_cfg)]
#![feature(const_trait_impl)]

#[cfg(feature = "ramdisk")]
pub mod ramdisk;
Expand Down
2 changes: 1 addition & 1 deletion src/ramdisk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl RamDisk {
}
}

impl BaseDriverOps for RamDisk {
impl const BaseDriverOps for RamDisk {
fn device_type(&self) -> DeviceType {
DeviceType::Block
}
Expand Down

0 comments on commit 0a4dfa1

Please sign in to comment.