all: use expect attribute where possible
This commit is contained in:
parent
c3b50dc653
commit
e377470f3f
134 changed files with 241 additions and 296 deletions
|
|
@ -26,7 +26,7 @@ use {
|
|||
};
|
||||
|
||||
pub const EI_DEVICE_TYPE_VIRTUAL: u32 = 1;
|
||||
#[allow(dead_code)]
|
||||
#[expect(dead_code)]
|
||||
pub const EI_DEVICE_TYPE_PHYSICAL: u32 = 2;
|
||||
|
||||
pub struct EiDevice {
|
||||
|
|
@ -100,7 +100,7 @@ impl EiDevice {
|
|||
});
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[expect(dead_code)]
|
||||
pub fn send_paused(&self, serial: u32) {
|
||||
self.client.event(Paused {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use {
|
|||
thiserror::Error,
|
||||
};
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[expect(dead_code)]
|
||||
pub struct EiPingpong {
|
||||
pub id: EiPingpongId,
|
||||
pub client: Rc<EiClient>,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ pub const EI_HANDSHAKE_ID: EiHandshakeId = EiHandshakeId::from_raw(0);
|
|||
pub struct EiObjectId(u64);
|
||||
|
||||
impl EiObjectId {
|
||||
#[allow(dead_code)]
|
||||
#[expect(dead_code)]
|
||||
pub const NONE: Self = EiObjectId(0);
|
||||
|
||||
pub fn from_raw(raw: u64) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue