chore: make Cycles::new a const fn
This commit is contained in:
parent
2401cf7190
commit
d76b3b6101
|
@ -2085,7 +2085,7 @@ impl std::fmt::Debug for Registers {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Cycles {
|
impl Cycles {
|
||||||
pub fn new(num: u32) -> Self {
|
pub const fn new(num: u32) -> Self {
|
||||||
Self(num)
|
Self(num)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue