Skip to content

Commit

Permalink
Fix attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Garrisi committed Feb 28, 2024
1 parent f2e0903 commit 42cc0e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/double_priority_queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ fn better_to_rebuild(len1: usize, len2: usize) -> bool {
}

#[cfg(feature = "serde")]
#![cfg_attr(docsrs, doc(cfg(feature = "serde")))]
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
mod serde {
use std::cmp::{Eq, Ord};
use std::hash::{BuildHasher, Hash};
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
//! ```
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(not(feature = "std"))]
extern crate alloc;
Expand Down
2 changes: 1 addition & 1 deletion src/priority_queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ fn better_to_rebuild(len1: usize, len2: usize) -> bool {
}

#[cfg(feature = "serde")]
#![cfg_attr(docsrs, doc(cfg(feature = "serde")))]
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
mod serde {
use std::cmp::{Eq, Ord};
use std::hash::{BuildHasher, Hash};
Expand Down

0 comments on commit 42cc0e0

Please sign in to comment.