1
0
Fork 0
forked from wry/wry

all: use expect attribute where possible

This commit is contained in:
Julian Orth 2024-09-06 11:08:22 +02:00
parent c3b50dc653
commit e377470f3f
134 changed files with 241 additions and 296 deletions

View file

@ -1,13 +1,12 @@
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))]
#[cfg_attr(not(feature = "rc_tracking"), expect(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]];
}