From 9898435d86e918372e23091bf5f9a1822fcfa028 Mon Sep 17 00:00:00 2001 From: Michael Rosenberg Date: Wed, 1 Nov 2023 04:53:52 -0400 Subject: [PATCH] Make clippy happy --- hybrid-array/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }