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 ed8384c commit b51b8b8
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 b51b8b8

Please sign in to comment.