From 9fe0a6df473c09c8ccdc513c7247e17c596f9d80 Mon Sep 17 00:00:00 2001 From: Shute052 Date: Sat, 13 Apr 2024 01:49:17 +0800 Subject: [PATCH] Cleanup --- src/input_processing/single_axis/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input_processing/single_axis/mod.rs b/src/input_processing/single_axis/mod.rs index 16e202b0..22eccb38 100644 --- a/src/input_processing/single_axis/mod.rs +++ b/src/input_processing/single_axis/mod.rs @@ -276,14 +276,14 @@ pub trait RegisterAxisProcessor { /// Registers the specified [`AxisProcessor`]. fn register_axis_processor<'de, T>(&mut self) -> &mut Self where - T: RegisterTypeTag<'de, dyn AxisProcessor>; + T: RegisterTypeTag<'de, dyn AxisProcessor> + GetTypeRegistration; } impl RegisterAxisProcessor for App { #[allow(unsafe_code)] fn register_axis_processor<'de, T>(&mut self) -> &mut Self where - T: RegisterTypeTag<'de, dyn AxisProcessor>, + T: RegisterTypeTag<'de, dyn AxisProcessor> + GetTypeRegistration, { let mut registry = unsafe { PROCESSOR_REGISTRY.write().unwrap() }; T::register_typetag(&mut registry);