From fe33008c5625b06fa9fb712e9254923ec724bda9 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Sat, 1 Jun 2024 16:07:52 -0700 Subject: [PATCH] base: Fix lint when `std` feature is disabled. --- all-is-cubes-base/src/util.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/all-is-cubes-base/src/util.rs b/all-is-cubes-base/src/util.rs index b37dc5261..84e4c6a67 100644 --- a/all-is-cubes-base/src/util.rs +++ b/all-is-cubes-base/src/util.rs @@ -142,6 +142,7 @@ cfg_if::cfg_if! { impl ErrorIfStd for T where T: fmt::Debug + fmt::Display {} impl From<&str> for Box { + #[allow(clippy::missing_inline_in_public_items)] fn from(s: &str) -> Self { Box::new(alloc::string::String::from(s)) } @@ -325,6 +326,7 @@ pub fn assert_send_sync() { pub fn assert_conditional_send_sync() {} #[cfg(not(feature = "std"))] #[doc(hidden)] // for use in internal tests only +#[allow(clippy::missing_inline_in_public_items)] pub fn assert_conditional_send_sync() {} #[cfg(test)]