warning: enum `Error` is never used --> /reports/os-implementation/K1375-shared-memory-lifetime-local-preflight-G9THnP/workspace/os-shared-memory/src/lifetime.rs:4:10 | 4 | pub enum Error { Access, Invalid, Busy, Stale } | ^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1375-shared-memory-lifetime-local-preflight-G9THnP/workspace/os-shared-memory/src/lifetime.rs:7:12 | 7 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Lifetime` is never constructed --> /reports/os-implementation/K1375-shared-memory-lifetime-local-preflight-G9THnP/workspace/os-shared-memory/src/lifetime.rs:19:12 | 19 | pub struct Lifetime { | ^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1375-shared-memory-lifetime-local-preflight-G9THnP/workspace/os-shared-memory/src/lifetime.rs:25:12 | 24 | impl Lifetime

{ | ------------------------------ associated items in this implementation 25 | pub fn new(owner: P, frames: [u64; 2]) -> Result { | ^^^ ... 37 | pub fn snapshot(&self) -> Snapshot

{ self.state } | ^^^^^^^^ 38 | 39 | fn maybe_free(&mut self) { | ^^^^^^^^^^ ... 49 | pub fn grant(&mut self, caller: P, recipient: P) -> Result<(), Error> { | ^^^^^ ... 59 | pub fn map(&mut self, caller: P, page: usize) -> Result { | ^^^ ... 73 | pub fn write(&mut self, caller: P, page: usize, byte: u8) -> Result<(), Error> { | ^^^^^ ... 84 | pub fn read(&self, caller: P, page: usize) -> Result { | ^^^^ ... 94 | pub fn close_handle(&mut self, caller: P) -> Result<(), Error> { | ^^^^^^^^^^^^ ... 106 | pub fn unmap(&mut self, caller: P, page: usize) -> Result<(), Error> { | ^^^^^ ... 119 | pub fn free_backing(&mut self, caller: P) -> Result<(), Error> { | ^^^^^^^^^^^^ warning: 4 warnings emitted