chore: make Cycles::new a const fn

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-03-20 19:55:39 -05:00
parent 2401cf7190
commit d76b3b6101
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}