diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..cdb545d --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/src/handlers.rs b/src/handlers.rs index 3e46ac4..9e838ef 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -219,7 +219,7 @@ impl XdgShellHandler for State { &mut data.state, Some(window.toplevel().wl_surface().clone()), SERIAL_COUNTER.next_serial(), - ) + ); }); let windows: Vec = self.space.elements().cloned().collect(); @@ -290,7 +290,7 @@ impl XdgShellHandler for State { } fn grab(&mut self, surface: PopupSurface, seat: WlSeat, serial: Serial) { - let seat: Seat> = Seat::from_resource(&seat).unwrap(); + let seat: Seat = Seat::from_resource(&seat).unwrap(); let popup_kind = PopupKind::Xdg(surface); if let Some(root) = find_popup_root_surface(&popup_kind) .ok()