Skip to content

Commit 65bdd52

Browse files
committed
memory_encryption: fix const_fn name already taken
1 parent 29e9466 commit 65bdd52

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bit_field = "0.10.1"
2424
bitflags = "2.3.2"
2525
volatile = "0.4.4"
2626
rustversion = "1.0.5"
27-
const_fn = "0.4.11"
27+
dep_const_fn = { package = "const_fn", version = "0.4.11" }
2828

2929
[features]
3030
default = ["nightly", "instructions"]

src/addr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::structures::mem_encrypt::ENC_BIT_MASK;
55
use crate::structures::paging::page_table::PageTableLevel;
66
use crate::structures::paging::{PageOffset, PageTableIndex};
77
use bit_field::BitField;
8-
use const_fn::const_fn;
8+
use dep_const_fn::const_fn;
99
use core::convert::TryFrom;
1010
use core::fmt;
1111
#[cfg(feature = "step_trait")]

src/structures/paging/page_table.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use super::{PageSize, PhysFrame, Size4KiB};
44
use crate::addr::PhysAddr;
55
use bitflags::bitflags;
6-
use const_fn::const_fn;
6+
use dep_const_fn::const_fn;
77
use core::fmt;
88
#[cfg(feature = "step_trait")]
99
use core::iter::Step;

0 commit comments

Comments
 (0)