Skip to content

Commit

Permalink
Fix with new rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
guerinoni committed Sep 26, 2024
1 parent a7cc109 commit c944cdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/cpu_registers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum BaseKind {
}

impl CpuRegisters {
pub fn new(gba: Arc<Mutex<Gba>>) -> Self {
pub const fn new(gba: Arc<Mutex<Gba>>) -> Self {
Self {
gba,
base_kind: BaseKind::Hex,
Expand Down
2 changes: 1 addition & 1 deletion ui/src/gba_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct GbaDisplay {
}

impl GbaDisplay {
pub(crate) fn new(gba: Arc<Mutex<Gba>>) -> Self {
pub(crate) const fn new(gba: Arc<Mutex<Gba>>) -> Self {
Self { gba }
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/savegame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct SaveGame {
}

impl SaveGame {
pub fn new(gba: Arc<Mutex<Gba>>) -> Self {
pub const fn new(gba: Arc<Mutex<Gba>>) -> Self {
Self { gba }
}

Expand Down

0 comments on commit c944cdd

Please sign in to comment.