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

@ -96,7 +96,7 @@ impl UsrJayCompositor {
jo
}
#[allow(dead_code)]
#[expect(dead_code)]
pub fn watch_workspaces(&self) -> Rc<UsrJayWorkspaceWatcher> {
let ww = Rc::new(UsrJayWorkspaceWatcher {
id: self.con.id(),

View file

@ -88,7 +88,7 @@ impl UsrJayScreencast {
});
}
#[allow(dead_code)]
#[expect(dead_code)]
pub fn touch_allowed_workspaces(&self) {
self.con
.request(TouchAllowedWorkspaces { self_id: self.id });

View file

@ -41,7 +41,7 @@ pub trait UsrWlPointerOwner {
}
impl UsrWlPointer {
#[allow(dead_code)]
#[expect(dead_code)]
pub fn set_cursor(&self, serial: u32, cursor: &UsrWlSurface, hot_x: i32, hot_y: i32) {
self.con.request(SetCursor {
self_id: self.id,

View file

@ -18,7 +18,7 @@ pub struct UsrWlShm {
}
impl UsrWlShm {
#[allow(dead_code)]
#[expect(dead_code)]
pub fn create_pool(&self, fd: &Rc<OwnedFd>, size: i32) -> Rc<UsrWlShmPool> {
let pool = Rc::new(UsrWlShmPool {
id: self.con.id(),

View file

@ -14,7 +14,7 @@ pub struct UsrWlShmPool {
}
impl UsrWlShmPool {
#[allow(dead_code)]
#[expect(dead_code)]
pub fn resize(&self, size: i32) {
self.con.request(Resize {
self_id: self.id,

View file

@ -32,7 +32,7 @@ impl UsrWlrLayerSurface {
});
}
#[allow(dead_code)]
#[expect(dead_code)]
pub fn set_keyboard_interactivity(&self, ki: u32) {
self.con.request(SetKeyboardInteractivity {
self_id: self.id,
@ -40,7 +40,7 @@ impl UsrWlrLayerSurface {
});
}
#[allow(dead_code)]
#[expect(dead_code)]
pub fn set_layer(&self, layer: u32) {
self.con.request(SetLayer {
self_id: self.id,

View file

@ -15,7 +15,7 @@ pub struct UsrWpViewport {
}
impl UsrWpViewport {
#[allow(dead_code)]
#[expect(dead_code)]
pub fn set_source(&self, x: Fixed, y: Fixed, width: Fixed, height: Fixed) {
self.con.request(SetSource {
self_id: self.id,

View file

@ -42,7 +42,7 @@ pub trait UsrZwlrScreencopyFrameOwner {
}
impl UsrZwlrScreencopyFrame {
#[allow(dead_code)]
#[expect(dead_code)]
pub fn copy(&self, buffer: &UsrWlBuffer) {
self.con.request(Copy {
self_id: self.id,
@ -50,7 +50,7 @@ impl UsrZwlrScreencopyFrame {
});
}
#[allow(dead_code)]
#[expect(dead_code)]
pub fn copy_with_damage(&self, buffer: &UsrWlBuffer) {
self.con.request(CopyWithDamage {
self_id: self.id,

View file

@ -20,7 +20,7 @@ pub struct UsrZwlrScreencopyManager {
}
impl UsrZwlrScreencopyManager {
#[allow(dead_code)]
#[expect(dead_code)]
pub fn capture_output(&self, output: &UsrWlOutput) -> Rc<UsrZwlrScreencopyFrame> {
let frame = Rc::new(UsrZwlrScreencopyFrame {
id: self.con.id(),