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

refactor: more clippy

parent 42f106dc
No related branches found
No related tags found
No related merge requests found
Pipeline #1531 passed
......@@ -23,7 +23,7 @@ const LOGIC_RATIO: f32 = 2.0;
const SCREEN_SCALE: f32 = 2.0;
/// The base title to be used in the window.
static TITLE: &'static str = "Boytacean";
static TITLE: &str = "Boytacean";
pub struct Emulator {
system: GameBoy,
......@@ -36,7 +36,7 @@ pub struct Emulator {
impl Emulator {
pub fn new(system: GameBoy, screen_scale: f32) -> Self {
Self {
system: system,
system,
graphics: Graphics::new(
TITLE,
DISPLAY_WIDTH as u32,
......
......@@ -49,12 +49,12 @@ impl Graphics {
canvas.clear();
Self {
canvas: canvas,
video_subsystem: video_subsystem,
timer_subsystem: timer_subsystem,
audio_subsystem: audio_subsystem,
event_pump: event_pump,
ttf_context: ttf_context,
canvas,
video_subsystem,
timer_subsystem,
audio_subsystem,
event_pump,
ttf_context,
}
}
......
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