Skip to content

Commit

Permalink
lib.rs: enable test for doc example that requiring std
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Aug 28, 2021
1 parent 33d0c66 commit c01d485
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@
//! ```
//! For convinence wrappers called `AHashMap` and `AHashSet` are also provided.
//! These to the same thing with slightly less typing.
//! ```ignore
//! ```
//! # #[cfg(feature = "std")]
//! # {
//! use ahash::AHashMap;
//!
//! let mut map: AHashMap<i32, i32> = AHashMap::with_capacity(4);
//! map.insert(12, 34);
//! map.insert(56, 78);
//! # }
//! ```
#![deny(clippy::correctness, clippy::complexity, clippy::perf)]
#![allow(clippy::pedantic, clippy::cast_lossless, clippy::unreadable_literal)]
Expand Down

0 comments on commit c01d485

Please sign in to comment.