Skip to content

Commit

Permalink
base: Fix lint when std feature is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Jun 1, 2024
1 parent a65f187 commit fe33008
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions all-is-cubes-base/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ cfg_if::cfg_if! {
impl<T> ErrorIfStd for T where T: fmt::Debug + fmt::Display {}

impl From<&str> for Box<dyn ErrorIfStd + Send + Sync> {
#[allow(clippy::missing_inline_in_public_items)]
fn from(s: &str) -> Self {
Box::new(alloc::string::String::from(s))
}
Expand Down Expand Up @@ -325,6 +326,7 @@ pub fn assert_send_sync<T: Send + Sync>() {
pub fn assert_conditional_send_sync<T: 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<T>() {}

#[cfg(test)]
Expand Down

0 comments on commit fe33008

Please sign in to comment.