diff --git a/src/server/tests.rs b/src/server/tests.rs index 534a1fc..cf924cd 100644 --- a/src/server/tests.rs +++ b/src/server/tests.rs @@ -1316,9 +1316,9 @@ fn reposition_popup() { popup, popup, x::WINDOW_NONE, - 40, // x - 60, // y - 80, // width + 40, // x + 60, // y + 80, // width 100, // height 0, true, @@ -1335,12 +1335,15 @@ fn reposition_popup() { Some(testwl::Vec2 { x: 80, y: 100 }) ); let win_data = &f.connection().windows[&popup]; - assert_eq!(win_data.dims, WindowDims { - x: 40, - y: 60, - width: 80, - height: 100 - }); + assert_eq!( + win_data.dims, + WindowDims { + x: 40, + y: 60, + width: 80, + height: 100 + } + ); } #[test] @@ -1353,9 +1356,9 @@ fn ignore_toplevel_reconfigure() { toplevel, toplevel, x::WINDOW_NONE, - 40, // x - 60, // y - 80, // width + 40, // x + 60, // y + 80, // width 100, // height 0, true, @@ -1363,12 +1366,15 @@ fn ignore_toplevel_reconfigure() { f.run(); let win_data = &f.connection().windows[&toplevel]; - assert_eq!(win_data.dims, WindowDims { - x: 0, - y: 0, - width: 100, - height: 100 - }); + assert_eq!( + win_data.dims, + WindowDims { + x: 0, + y: 0, + width: 100, + height: 100 + } + ); } /// See Pointer::handle_event for an explanation. diff --git a/tests/integration.rs b/tests/integration.rs index 8ebd24e..f221f37 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -669,8 +669,14 @@ fn copy_from_x11() { assert_ne!(window, owner.owner()); let mimes = f.testwl.data_source_mimes(); - assert!(mimes.contains(&"text/plain".into()), "text/plain not in mimes: {mimes:?}"); // mime1 - assert!(mimes.contains(&"blah/blah".into()), "blah/blah not in mimes: {mimes:?}"); // mime2 + assert!( + mimes.contains(&"text/plain".into()), + "text/plain not in mimes: {mimes:?}" + ); // mime1 + assert!( + mimes.contains(&"blah/blah".into()), + "blah/blah not in mimes: {mimes:?}" + ); // mime2 let data = f.testwl.paste_data(); f.testwl.dispatch(); diff --git a/testwl/src/lib.rs b/testwl/src/lib.rs index 6a4f522..6b48196 100644 --- a/testwl/src/lib.rs +++ b/testwl/src/lib.rs @@ -232,7 +232,6 @@ impl State { self.configure_serial += 1; } - #[track_caller] fn get_toplevel(&mut self, surface_id: SurfaceId) -> &mut Toplevel { let surface = self