all: use expect attribute where possible
This commit is contained in:
parent
c3b50dc653
commit
e377470f3f
134 changed files with 241 additions and 296 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue