use rust 2024 edition (#268)

This commit is contained in:
Logan McNaughton authored and GitHub committed 2025-02-20 18:20:55 +01:00
1 parent 6ecedde329
commit b7509a2425
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
[package]
name = "gopher64"
version = "1.0.8"
edition = "2021"
rust-version = "1.82"
edition = "2024"
rust-version = "1.85"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+1 -1
View File
@@ -1,6 +1,6 @@
use crate::device;
use crate::ui;
use std::alloc::{alloc_zeroed, Layout};
use std::alloc::{Layout, alloc_zeroed};
//const RDRAM_CONFIG_REG: u32 = 0;
//const RDRAM_DEVICE_ID_REG: u32 = 1;
+2 -2
View File
@@ -191,8 +191,8 @@ where
[device::cop0::reserved; N]
}
pub fn default_memory_read(
) -> [fn(&mut device::Device, u64, device::memory::AccessSize) -> u32; 0x2000] {
pub fn default_memory_read()
-> [fn(&mut device::Device, u64, device::memory::AccessSize) -> u32; 0x2000] {
[device::rdram::read_mem; 0x2000]
}