mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-18 22:26:12 +01:00
Add test workflow
This commit is contained in:
parent
c77b086ddf
commit
3e50d322f4
2 changed files with 20 additions and 2 deletions
18
.github/workflows/test.yml
vendored
Normal file
18
.github/workflows/test.yml
vendored
Normal 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
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue