Skip to content

Commit 223d4c0

Browse files
authored
Merge pull request #188 from bjorn3/simplify_has_std
Simplify logic around `#[cfg(has_std)]`
2 parents cdccb8b + 5f238f7 commit 223d4c0

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,14 @@
7777
//!
7878
//! [def]: map/struct.IndexMap.html#impl-Default
7979
80-
#[cfg(not(has_std))]
8180
extern crate alloc;
8281

8382
#[cfg(has_std)]
8483
#[macro_use]
8584
extern crate std;
8685

87-
#[cfg(not(has_std))]
8886
use alloc::vec::{self, Vec};
8987

90-
#[cfg(has_std)]
91-
use std::vec::{self, Vec};
92-
9388
#[macro_use]
9489
mod macros;
9590
mod equivalent;

src/rayon/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
use rayon::prelude::*;
22

3-
#[cfg(not(has_std))]
43
use alloc::collections::LinkedList;
54

6-
#[cfg(has_std)]
7-
use std::collections::LinkedList;
8-
95
use crate::vec::Vec;
106

117
// generate `ParallelIterator` methods by just forwarding to the underlying

0 commit comments

Comments
 (0)