From d76b3b610133b3fdbc6da6a66ac134c4590c0ea8 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 20 Mar 2021 19:55:39 -0500 Subject: [PATCH] chore: make Cycles::new a const fn --- src/instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }