Skip to content
Snippets Groups Projects
Verified Commit a9a8c5f8 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: clippy issue

parent c52187ef
No related branches found
No related tags found
No related merge requests found
Pipeline #3063 passed
......@@ -210,7 +210,7 @@ impl Emulator {
pub fn load_rom(&mut self, path: Option<&str>) {
let rom_path: &str = path.unwrap_or(&self.rom_path);
let ram_path = replace_ext(rom_path, "sav").unwrap_or("invalid".to_string());
let ram_path = replace_ext(rom_path, "sav").unwrap_or_else(|| "invalid".to_string());
let rom = self.system.load_rom_file(
rom_path,
if Path::new(&ram_path).exists() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment