Skip to content

Commit fd4e566

Browse files
committed
Update no_std feature to be compatible with nightly.
1 parent 5b930ab commit fd4e566

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "unicode-segmentation"
4-
version = "0.1.1"
4+
version = "0.1.2"
55
authors = ["kwantam <kwantam@gmail.com>"]
66

77
homepage = "https://github.com/unicode-rs/unicode-segmentation"

src/grapheme.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[cfg(feature = "no_std")]
12-
use core::prelude::*;
13-
1411
#[cfg(feature = "no_std")]
1512
use core::cmp;
1613

src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@
5454
html_favicon_url = "https://unicode-rs.github.io/unicode-rs_sm.png")]
5555

5656
#![cfg_attr(feature = "no_std", no_std)]
57-
#![cfg_attr(feature = "no_std", feature(no_std, core, core_prelude, core_char_ext, core_slice_ext, core_str_ext))]
58-
59-
#[cfg(feature = "no_std")]
60-
#[macro_use]
61-
extern crate core;
57+
#![cfg_attr(feature = "no_std", feature(no_std, core_char_ext, core_slice_ext, core_str_ext))]
6258

6359
#[cfg(all(test, feature = "no_std"))]
6460
#[macro_use]

src/word.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[cfg(feature = "no_std")]
12-
use core::prelude::*;
13-
1411
#[cfg(feature = "no_std")]
1512
use core::cmp;
1613
#[cfg(feature = "no_std")]

0 commit comments

Comments
 (0)