• async-mavlink 0.1.3/src/types.rs
    56
        pub fn new(message: &M) -> MavMessageType<M> {
    57
            #[allow(clippy::mem_discriminant_non_enum)]
    58
            Self(discriminant(message))
  • eternity 0.1.0/src/multi_bucket.rs
    570
        // There is no way to check whether a type is an enum in Rust yet.
    571
        #[allow(clippy::mem_discriminant_non_enum)]
    572
        // `map_or`-solution won't compile due to moved `key` in `default`-closure.
    588
        /// Inserts an already created bucket for a `key`.
    589
        #[allow(clippy::mem_discriminant_non_enum)]
    590
        pub fn insert_bucket(&mut self, key: &Key, bucket: Bucket<Key, Value>) {
    598
        /// The method returns a new builder to add it to `self`.
    599
        #[allow(clippy::mem_discriminant_non_enum)]
    600
        pub fn build_group<'a>(
    652
        // There is no way to check whether a type is an enum in Rust yet.
    653
        #[allow(clippy::mem_discriminant_non_enum)]
    654
        pub async fn hit_limit(&mut self, key: &Key) -> Option<RateLimitInfo<Value>> {
    674
        // There is no way to check whether a type is an enum in Rust yet.
    675
        #[allow(clippy::mem_discriminant_non_enum)]
    676
        #[cfg(feature = "cache")]