Skip to content

Commit b02a7cb

Browse files
committed
Allow Clippy safety doc lints for NdIndex and FixedInitializer
1 parent 6169d49 commit b02a7cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/dimension/ndindex.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use crate::{
1818
/// a[[1, 1]] += 1;
1919
/// assert_eq!(a[(1, 1)], 4);
2020
/// ```
21+
#[allow(clippy::missing_safety_doc)] // TODO: Add doc
2122
pub unsafe trait NdIndex<E>: Debug {
2223
#[doc(hidden)]
2324
fn index_checked(&self, dim: &E, strides: &E) -> Option<isize>;

src/free_functions.rs

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ pub fn aview_mut2<A, V: FixedInitializer<Elem = A>>(xs: &mut [V]) -> ArrayViewMu
169169
}
170170

171171
/// Fixed-size array used for array initialization
172+
#[allow(clippy::missing_safety_doc)] // Should not be implemented downstream and to be deprecated.
172173
pub unsafe trait FixedInitializer {
173174
type Elem;
174175
fn as_init_slice(&self) -> &[Self::Elem];

0 commit comments

Comments
 (0)