diff --git a/src/instruction.rs b/src/instruction.rs index a6ab66d..27b7334 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -2085,7 +2085,7 @@ impl std::fmt::Debug for Registers { } impl Cycles { - pub fn new(num: u32) -> Self { + pub const fn new(num: u32) -> Self { Self(num) } }