Add test workflow

This commit is contained in:
Seaotatop 2023-06-25 15:44:01 -05:00
parent c77b086ddf
commit 3e50d322f4
2 changed files with 20 additions and 2 deletions

18
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Run Clippy
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clippy
run: cargo clippy

View file

@ -219,7 +219,7 @@ impl<B: Backend> XdgShellHandler for State<B> {
&mut data.state,
Some(window.toplevel().wl_surface().clone()),
SERIAL_COUNTER.next_serial(),
)
);
});
let windows: Vec<Window> = self.space.elements().cloned().collect();
@ -290,7 +290,7 @@ impl<B: Backend> XdgShellHandler for State<B> {
}
fn grab(&mut self, surface: PopupSurface, seat: WlSeat, serial: Serial) {
let seat: Seat<State<B>> = Seat::from_resource(&seat).unwrap();
let seat: Seat<Self> = Seat::from_resource(&seat).unwrap();
let popup_kind = PopupKind::Xdg(surface);
if let Some(root) = find_popup_root_surface(&popup_kind)
.ok()