1
0
Fork 0
forked from wry/wry

all: remove dead code

This commit is contained in:
Julian Orth 2024-05-02 19:37:19 +02:00
parent a20008d446
commit 8cee61122e
32 changed files with 9 additions and 145 deletions

View file

@ -205,6 +205,7 @@ impl Display for OsError {
}
}
#[cfg_attr(not(feature = "it"), allow(dead_code))]
pub trait OsErrorExt {
type Container;

View file

@ -10,6 +10,7 @@ pub trait Try: Sized {
where
F: FnOnce() -> Result<(), Self>;
#[allow(dead_code)]
fn tria<F>(f: F) -> Tria<Self, F>
where
F: Future<Output = Result<(), Self>>;

View file

@ -1,11 +1,13 @@
use crate::utils::ptr_ext::PtrExt;
#[cfg_attr(not(feature = "it"), allow(dead_code))]
pub trait WindowsExt<T> {
type Windows<'a, const N: usize>: Iterator<Item = &'a [T; N]>
where
Self: 'a,
T: 'a;
#[cfg_attr(not(feature = "rc_tracking"), allow(dead_code))]
fn array_windows_ext<'a, const N: usize>(&'a self) -> Self::Windows<'a, N>;
fn array_chunks_ext<'a, const N: usize>(&'a self) -> &'a [[T; N]];
}