diff --git a/hybrid-array/src/lib.rs b/hybrid-array/src/lib.rs index d8f5173e..bbb4b193 100644 --- a/hybrid-array/src/lib.rs +++ b/hybrid-array/src/lib.rs @@ -583,13 +583,13 @@ pub trait ArrayExt: Sized { F: FnMut(usize) -> Result; /// Create array using the given callback function for each element. - #[allow(clippy::unwrap_used)] + #[allow(clippy::unwrap_used, unused_qualifications)] fn from_fn(mut cb: F) -> Self where F: FnMut(usize) -> T, { // Turn the ordinary callback into a Result callback that always returns Ok - let wrapped_cb = |idx| Result::<_, ::core::convert::Infallible>::Ok(cb(idx)); + let wrapped_cb = |idx| Result::::Ok(cb(idx)); // Now use the try_from version of this method Self::try_from_fn(wrapped_cb).unwrap() }