Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tedsteen committed May 22, 2024
1 parent b1e06fc commit 503c985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/emulation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ pub trait NesStateHandler {
fn reset(&mut self, hard: bool);
fn set_speed(&mut self, speed: f32);
fn save_sram(&self) -> Option<&[u8]>;
#[cfg(feature = "netplay")]
fn frame(&self) -> u32;
}

Expand Down
4 changes: 1 addition & 3 deletions src/emulation/tetanes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ pub struct TetanesNesState {
trait ToTetanesRegion {
fn to_tetanes_region(&self) -> NesRegion;
}
trait ToSampleRate {
fn to_sample_rate(&self) -> f32;
}

impl ToTetanesRegion for crate::emulation::NesRegion {
fn to_tetanes_region(&self) -> NesRegion {
Expand Down Expand Up @@ -196,6 +193,7 @@ impl NesStateHandler for TetanesNesState {
}
}

#[cfg(feature = "netplay")]
fn frame(&self) -> u32 {
self.control_deck.frame_number()
}
Expand Down

0 comments on commit 503c985

Please sign in to comment.