Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shute052 committed Apr 12, 2024
1 parent 8a9c864 commit 9fe0a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input_processing/single_axis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fe0a6d

Please sign in to comment.