From ae42f6ead068e865ebfa7104f7fe5e4a8a53e5ad Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 18 Aug 2025 00:06:47 -0500 Subject: [PATCH] chore: solve clippy warnings --- src/platform/mod.rs | 1 - tests/events.rs | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/platform/mod.rs b/src/platform/mod.rs index a7580b8..7cf35cf 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -28,7 +28,6 @@ pub trait CommonPlatform { fn get_canvas_size(&self) -> Option<(u32, u32)>; /// Loads raw asset data using the appropriate platform-specific method. - fn get_asset_bytes(&self, asset: Asset) -> Result, AssetError>; } diff --git a/tests/events.rs b/tests/events.rs index 7039bf0..f812966 100644 --- a/tests/events.rs +++ b/tests/events.rs @@ -4,7 +4,7 @@ use pacman::map::direction::Direction; #[test] fn test_game_command_variants() { // Test that all GameCommand variants can be created - let commands = vec![ + let commands = [ GameCommand::Exit, GameCommand::MovePlayer(Direction::Up), GameCommand::MovePlayer(Direction::Down), @@ -38,17 +38,6 @@ fn test_game_command_equality() { ); } -#[test] -fn test_game_command_copy_clone() { - let original = GameCommand::MovePlayer(Direction::Up); - let copied = original; - let cloned = original.clone(); - - assert_eq!(original, copied); - assert_eq!(original, cloned); - assert_eq!(copied, cloned); -} - #[test] fn test_game_event_variants() { let command_event = GameEvent::Command(GameCommand::Exit);