1
0
Fork 0
forked from wry/wry

all: use expect attribute where possible

This commit is contained in:
Julian Orth 2024-09-06 11:08:22 +02:00
parent c3b50dc653
commit e377470f3f
134 changed files with 241 additions and 296 deletions

View file

@ -24,7 +24,7 @@ use {
thiserror::Error,
};
#[allow(dead_code)]
#[expect(dead_code)]
const BAD_SURFACE: u32 = 0;
const MAX_SUBSURFACE_DEPTH: u32 = 100;

View file

@ -37,10 +37,10 @@ use {
thiserror::Error,
};
#[allow(dead_code)]
#[expect(dead_code)]
const NOT_CONSTRUCTED: u32 = 1;
const ALREADY_CONSTRUCTED: u32 = 2;
#[allow(dead_code)]
#[expect(dead_code)]
const UNCONFIGURED_BUFFER: u32 = 3;
#[derive(Copy, Clone, Debug, Eq, PartialEq)]

View file

@ -30,7 +30,7 @@ use {
thiserror::Error,
};
#[allow(dead_code)]
#[expect(dead_code)]
const INVALID_GRAB: u32 = 1;
tree_id!(PopupId);

View file

@ -56,10 +56,10 @@ pub enum ResizeEdge {
BottomRight = 10,
}
#[allow(dead_code)]
#[expect(dead_code)]
const STATE_MAXIMIZED: u32 = 1;
const STATE_FULLSCREEN: u32 = 2;
#[allow(dead_code)]
#[expect(dead_code)]
const STATE_RESIZING: u32 = 3;
const STATE_ACTIVATED: u32 = 4;
const STATE_TILED_LEFT: u32 = 5;
@ -68,12 +68,12 @@ const STATE_TILED_TOP: u32 = 7;
const STATE_TILED_BOTTOM: u32 = 8;
pub const STATE_SUSPENDED: u32 = 9;
#[allow(dead_code)]
#[expect(dead_code)]
const CAP_WINDOW_MENU: u32 = 1;
#[allow(dead_code)]
#[expect(dead_code)]
const CAP_MAXIMIZE: u32 = 2;
const CAP_FULLSCREEN: u32 = 3;
#[allow(dead_code)]
#[expect(dead_code)]
const CAP_MINIMIZE: u32 = 4;
pub const WM_CAPABILITIES_SINCE: Version = Version(5);
@ -81,7 +81,7 @@ pub const SUSPENDED_SINCE: Version = Version(6);
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum Decoration {
#[allow(dead_code)]
#[expect(dead_code)]
Client,
Server,
}

View file

@ -37,7 +37,6 @@ use {
};
const KI_NONE: u32 = 0;
#[allow(dead_code)]
const KI_EXCLUSIVE: u32 = 1;
const KI_ON_DEMAND: u32 = 2;

View file

@ -127,7 +127,7 @@ impl ZwpInputPopupSurfaceV2 {
Ok(())
}
#[allow(dead_code)]
#[expect(dead_code)]
pub fn send_text_input_rectangle(&self, rect: Rect) {
self.client.event(TextInputRectangle {
self_id: self.id,