diff --git a/examples/window.rs b/examples/window.rs index 752bbd0ab..36b679965 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -2,8 +2,6 @@ use std::collections::HashMap; use std::error::Error; -use std::fmt; -use std::fmt::Debug; #[cfg(not(any(android_platform, ios_platform)))] use std::num::NonZeroU32; use std::path::Path; @@ -602,7 +600,7 @@ impl Application { println!("Keyboard bindings:"); for binding in KEY_BINDINGS { println!( - "{}{:<10} - {} ({})", + "{}{:<10} - {:?} ({})", modifiers_to_string(binding.mods), binding.trigger, binding.action, @@ -612,7 +610,7 @@ impl Application { println!("Mouse bindings:"); for binding in MOUSE_BINDINGS { println!( - "{}{:<10} - {} ({})", + "{}{:<10} - {:?} ({})", modifiers_to_string(binding.mods), mouse_button_to_string(binding.trigger), binding.action, @@ -727,12 +725,6 @@ impl Action { } } -impl fmt::Display for Action { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - Debug::fmt(&self, f) - } -} - fn decode_cursor(bytes: &[u8]) -> CustomCursorSource { let img = image::load_from_memory(bytes).unwrap().to_rgba8(); let samples = img.into_flat_samples();