Skip to content

Commit 709a7ab

Browse files
committed
tests
1 parent cfb096b commit 709a7ab

3 files changed

Lines changed: 14 additions & 20 deletions

File tree

src/seat/input_method.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,13 @@ mod test {
395395

396396
fn assert_is_manager_delegate<T>()
397397
where
398-
T: wayland_client::Dispatch<ZwpInputMethodManagerV2, crate::globals::GlobalData>,
398+
crate::globals::GlobalData: wayland_client::Dispatch<ZwpInputMethodManagerV2, T>,
399399
{
400400
}
401401

402402
fn assert_is_delegate<T>()
403403
where
404-
T: wayland_client::Dispatch<ZwpInputMethodV2, InputMethodData<()>>,
404+
InputMethodData<()>: wayland_client::Dispatch<ZwpInputMethodV2, T>,
405405
{
406406
}
407407

src/seat/input_method_v3.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -769,36 +769,32 @@ mod test {
769769

770770
fn assert_is_manager_delegate<T>()
771771
where
772-
T: wayland_client::Dispatch<
772+
crate::globals::GlobalData: wayland_client::Dispatch<
773773
protocol::xx_input_method_manager_v2::XxInputMethodManagerV2,
774-
crate::globals::GlobalData,
774+
T,
775775
>,
776776
{
777777
}
778778

779779
fn assert_is_delegate<T>()
780780
where
781-
T: wayland_client::Dispatch<
782-
protocol::xx_input_method_v1::XxInputMethodV1,
783-
InputMethodData<()>,
784-
>,
781+
InputMethodData<()>:
782+
wayland_client::Dispatch<protocol::xx_input_method_v1::XxInputMethodV1, T>,
785783
{
786784
}
787785

788786
fn assert_is_popup_delegate<T>()
789787
where
790-
T: wayland_client::Dispatch<
791-
protocol::xx_input_popup_surface_v2::XxInputPopupSurfaceV2,
792-
PopupData,
793-
>,
788+
PopupData:
789+
wayland_client::Dispatch<protocol::xx_input_popup_surface_v2::XxInputPopupSurfaceV2, T>,
794790
{
795791
}
796792

797793
fn assert_is_positioner_delegate<T>()
798794
where
799-
T: wayland_client::Dispatch<
795+
PositionerData: wayland_client::Dispatch<
800796
protocol::xx_input_popup_positioner_v1::XxInputPopupPositionerV1,
801-
PositionerData,
797+
T,
802798
>,
803799
{
804800
}

src/seat/keyboard_filter.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,17 @@ mod test {
106106

107107
fn assert_is_manager_delegate<T>()
108108
where
109-
T: wayland_client::Dispatch<
109+
crate::globals::GlobalData: wayland_client::Dispatch<
110110
protocol::xx_keyboard_filter_manager_v1::XxKeyboardFilterManagerV1,
111-
crate::globals::GlobalData,
111+
T,
112112
>,
113113
{
114114
}
115115

116116
fn assert_is_delegate<T>()
117117
where
118-
T: wayland_client::Dispatch<
119-
protocol::xx_keyboard_filter_v1::XxKeyboardFilterV1,
120-
crate::globals::GlobalData,
121-
>,
118+
crate::globals::GlobalData:
119+
wayland_client::Dispatch<protocol::xx_keyboard_filter_v1::XxKeyboardFilterV1, T>,
122120
{
123121
}
124122

0 commit comments

Comments
 (0)