Skip to content

Commit b230b7a

Browse files
committed
Rename no_std feature to spin_no_std, since it changes algorithm
1 parent ecf1de0 commit b230b7a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ script:
1212
travis-cargo build &&
1313
travis-cargo test &&
1414
travis-cargo bench &&
15-
travis-cargo --only nightly build -- --features no_std &&
16-
travis-cargo --only nightly test -- --features no_std &&
17-
travis-cargo --only nightly bench -- --features no_std &&
15+
travis-cargo --only nightly build -- --features spin_no_std &&
16+
travis-cargo --only nightly test -- --features spin_no_std &&
17+
travis-cargo --only nightly bench -- --features spin_no_std &&
1818
travis-cargo --only stable doc
1919
after_success:
2020
- travis-cargo --only stable doc-upload

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ optional = true
1717

1818
[features]
1919
nightly = []
20-
no_std = ["nightly", "spin"]
20+
spin_no_std = ["nightly", "spin"]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ The `Deref` implementation uses a hidden static variable that is guarded by a at
7575
#[cfg(not(feature="nightly"))]
7676
pub mod lazy;
7777

78-
#[cfg(all(feature="nightly", not(feature="no_std")))]
78+
#[cfg(all(feature="nightly", not(feature="spin_no_std")))]
7979
#[path="nightly_lazy.rs"]
8080
pub mod lazy;
8181

82-
#[cfg(all(feature="nightly", feature="no_std"))]
82+
#[cfg(all(feature="nightly", feature="spin_no_std"))]
8383
#[path="core_lazy.rs"]
8484
pub mod lazy;
8585

tests/no_std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg(feature="no_std")]
1+
#![cfg(feature="spin_no_std")]
22
#![feature(const_fn)]
33

44
#![no_std]

0 commit comments

Comments
 (0)