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

fix: clippy issue

parent 3a53c211
No related branches found
No related tags found
No related merge requests found
Pipeline #2767 passed
......@@ -203,13 +203,10 @@ impl Emulator {
"========= Cartridge =========\n{}\n=============================",
rom
);
match self.sdl {
Some(ref mut sdl) => {
sdl.window_mut()
.set_title(format!("{} [{}]", self.title, rom.title()).as_str())
.unwrap();
}
None => (),
if let Some(ref mut sdl) = self.sdl {
sdl.window_mut()
.set_title(format!("{} [{}]", self.title, rom.title()).as_str())
.unwrap();
}
self.rom_path = String::from(path_res);
}
......
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