Skip to content

Commit

Permalink
Fix fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Jul 23, 2023
1 parent e81f61d commit 16c592f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ mod try_unwrap;
#[doc(inline)]
pub use self::try_unwrap::TryUnwrapError;


// When re-exporting traits from std we need to do a pretty crazy trick, because we ONLY want
// to re-export the traits and not derives that are called the same in the std module,
// because those would conflict with our own. The way we do this is by first importing both
Expand All @@ -114,8 +113,8 @@ macro_rules! re_export_traits((
#[cfg(feature = $feature)]
#[doc(inline)]
// Seems there's a bug in this warning because it considers the next line a glob import,
// even though when expanded it is not.
#[allow(ambiguous_glob_reexports)]
// even though when expanded it is not. Also make clippy not complain about it.
#[allow(ambiguous_glob_reexports, clippy::useless_attribute)]
pub use crate::macros::{$($traits),*};

}
Expand Down Expand Up @@ -202,7 +201,6 @@ re_export_traits!("sum", sum_traits, core::iter, Product, Sum);

re_export_traits!("try_into", try_into_traits, core::convert, TryInto);


// Then finally also wildcard export the other derives, to also export the derives that don't have
// a trait (e.g. Constructor).
#[doc(inline)]
Expand Down

0 comments on commit 16c592f

Please sign in to comment.