Skip to content

Commit

Permalink
clippy: fix instead of silence clippy::mixed_attributes_style
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed May 29, 2024
1 parent 2c7758e commit fd73404
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions borsh/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,11 @@ where
}

/// Module is available if borsh is built with `features = ["std"]` or `features = ["hashbrown"]`.
#[allow(clippy::mixed_attributes_style)]
///
/// Module defines [BorshDeserialize] implementation for
/// [HashMap](std::collections::HashMap)/[HashSet](std::collections::HashSet).
#[cfg(hash_collections)]
pub mod hashes {
//!
//! Module defines [BorshDeserialize] implementation for
//! [HashMap](std::collections::HashMap)/[HashSet](std::collections::HashSet).
use core::hash::{BuildHasher, Hash};

use crate::BorshDeserialize;
Expand Down
7 changes: 3 additions & 4 deletions borsh/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,12 +682,11 @@ where
}

/// Module is available if borsh is built with `features = ["std"]` or `features = ["hashbrown"]`.
#[allow(clippy::mixed_attributes_style)]
///
/// Module defines [BorshSchema] implementation for
/// [HashMap](std::collections::HashMap)/[HashSet](std::collections::HashSet).
#[cfg(hash_collections)]
pub mod hashes {
//!
//! Module defines [BorshSchema] implementation for
//! [HashMap](std::collections::HashMap)/[HashSet](std::collections::HashSet).
use crate::BorshSchema;

use super::{add_definition, Declaration, Definition};
Expand Down
7 changes: 3 additions & 4 deletions borsh/src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,11 @@ where
}

/// Module is available if borsh is built with `features = ["std"]` or `features = ["hashbrown"]`.
#[allow(clippy::mixed_attributes_style)]
///
/// Module defines [BorshSerialize] implementation for
/// [HashMap](std::collections::HashMap)/[HashSet](std::collections::HashSet).
#[cfg(hash_collections)]
pub mod hashes {
//!
//! Module defines [BorshSerialize] implementation for
//! [HashMap](std::collections::HashMap)/[HashSet](std::collections::HashSet).
use crate::__private::maybestd::vec::Vec;
use crate::error::check_zst;
use crate::{
Expand Down

0 comments on commit fd73404

Please sign in to comment.