warning: constant `CAPACITY` is never used --> /reports/os-implementation/K1380-shared-memory-ring-local-preflight-MSpXfz/workspace/os-shared-memory/src/ring.rs:3:11 | 3 | pub const CAPACITY: usize = 16; | ^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: enum `Error` is never used --> /reports/os-implementation/K1380-shared-memory-ring-local-preflight-MSpXfz/workspace/os-shared-memory/src/ring.rs:6:10 | 6 | pub enum Error { Full, Empty, Invalid, Stale } | ^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1380-shared-memory-ring-local-preflight-MSpXfz/workspace/os-shared-memory/src/ring.rs:9:12 | 9 | pub struct Snapshot { | ^^^^^^^^ warning: struct `Ring` is never constructed --> /reports/os-implementation/K1380-shared-memory-ring-local-preflight-MSpXfz/workspace/os-shared-memory/src/ring.rs:18:12 | 18 | pub struct Ring { state: Snapshot } | ^^^^ warning: associated items `new`, `snapshot`, `validate_untrusted_producer`, `produce`, and `consume` are never used --> /reports/os-implementation/K1380-shared-memory-ring-local-preflight-MSpXfz/workspace/os-shared-memory/src/ring.rs:21:18 | 20 | impl Ring { | --------- associated items in this implementation 21 | pub const fn new() -> Self { | ^^^ ... 29 | pub fn snapshot(&self) -> Snapshot { self.state } | ^^^^^^^^ 30 | 31 | pub fn validate_untrusted_producer(&self, candidate: u64) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 40 | pub fn produce(&mut self, value: u64) -> Result<(), Error> { | ^^^^^^^ ... 53 | pub fn consume(&mut self) -> Result { | ^^^^^^^ warning: 5 warnings emitted