CI: deny warnings in anvil
This commit is contained in:
parent
f366dfd12a
commit
3387957065
|
@ -94,6 +94,9 @@ jobs:
|
|||
- default
|
||||
- all
|
||||
|
||||
env:
|
||||
RUSTFLAGS: "-D warnings"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
|
@ -8,25 +8,31 @@ use crate::AnvilState;
|
|||
|
||||
use smithay::{
|
||||
backend::input::{
|
||||
self, Device, DeviceCapability, Event, InputBackend, InputEvent, KeyState, KeyboardKeyEvent,
|
||||
PointerAxisEvent, PointerButtonEvent, ProximityState, TabletToolButtonEvent, TabletToolEvent,
|
||||
TabletToolProximityEvent, TabletToolTipEvent, TabletToolTipState,
|
||||
self, Event, InputBackend, InputEvent, KeyState, KeyboardKeyEvent, PointerAxisEvent,
|
||||
PointerButtonEvent,
|
||||
},
|
||||
reexports::wayland_server::protocol::wl_pointer,
|
||||
utils::{Logical, Point},
|
||||
wayland::{
|
||||
output::Mode,
|
||||
seat::{keysyms as xkb, AxisFrame, Keysym, ModifiersState},
|
||||
tablet_manager::{TabletDescriptor, TabletSeatTrait},
|
||||
SERIAL_COUNTER as SCOUNTER,
|
||||
},
|
||||
};
|
||||
|
||||
#[cfg(feature = "winit")]
|
||||
use smithay::backend::input::PointerMotionAbsoluteEvent;
|
||||
use smithay::{backend::input::PointerMotionAbsoluteEvent, wayland::output::Mode};
|
||||
|
||||
#[cfg(feature = "udev")]
|
||||
use smithay::backend::{input::PointerMotionEvent, session::Session};
|
||||
use smithay::{
|
||||
backend::{
|
||||
input::{
|
||||
Device, DeviceCapability, PointerMotionEvent, ProximityState, TabletToolButtonEvent,
|
||||
TabletToolEvent, TabletToolProximityEvent, TabletToolTipEvent, TabletToolTipState,
|
||||
},
|
||||
session::Session,
|
||||
},
|
||||
utils::{Logical, Point},
|
||||
wayland::tablet_manager::{TabletDescriptor, TabletSeatTrait},
|
||||
};
|
||||
|
||||
impl<Backend> AnvilState<Backend> {
|
||||
fn keyboard_key_to_action<B: InputBackend>(&mut self, evt: B::KeyboardKeyEvent) -> KeyAction {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use slog::{crit, info, o, Drain};
|
||||
use slog::{crit, o, Drain};
|
||||
|
||||
static POSSIBLE_BACKENDS: &[&str] = &[
|
||||
#[cfg(feature = "winit")]
|
||||
|
@ -21,12 +21,12 @@ fn main() {
|
|||
match arg.as_ref().map(|s| &s[..]) {
|
||||
#[cfg(feature = "winit")]
|
||||
Some("--winit") => {
|
||||
info!(log, "Starting anvil with winit backend");
|
||||
slog::info!(log, "Starting anvil with winit backend");
|
||||
anvil::winit::run_winit(log);
|
||||
}
|
||||
#[cfg(feature = "udev")]
|
||||
Some("--tty-udev") => {
|
||||
info!(log, "Starting anvil on a tty using udev");
|
||||
slog::info!(log, "Starting anvil on a tty using udev");
|
||||
anvil::udev::run_udev(log);
|
||||
}
|
||||
Some(other) => {
|
||||
|
|
Loading…
Reference in New Issue