Skip to content

Commit 0313e97

Browse files
committed
Remove core feature
1 parent 5fe9d2b commit 0313e97

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ before_install:
1919
script:
2020
- cargo build --verbose
2121
- cargo test --verbose
22-
- cargo build --verbose --no-default-features
23-
- cargo test --verbose --no-default-features
24-
- cargo build --verbose --no-default-features --features core,all-languages
25-
- cargo test --verbose --no-default-features --features core,all-languages
22+
- cargo build --verbose --no-default-features --features all-languages
23+
- cargo test --verbose --no-default-features --features all-languages
2624
- cargo build --verbose --features rand,all-languages
2725
- cargo test --verbose --features rand,all-languages
2826
# benchmarks

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ path = "src/lib.rs"
1616

1717
[features]
1818
default = [ "std" ]
19-
core = []
20-
std = [ "core", "unicode-normalization", "serde/std" ]
19+
std = [ "unicode-normalization", "serde/std" ]
2120

2221
# Note: English is the standard for bip39 so always included
2322
chinese-simplified = []

src/language/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#[cfg(feature = "core")]
32
use core::fmt;
43

54
mod english;
@@ -153,7 +152,6 @@ impl Language {
153152
}
154153
}
155154

156-
#[cfg(feature = "core")]
157155
impl fmt::Display for Language {
158156
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
159157
fmt::Debug::fmt(self, f)

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ extern crate rand;
4242
#[cfg(feature = "serde")]
4343
pub extern crate serde;
4444

45-
#[cfg(feature = "core")]
4645
use core::{fmt, str};
4746

4847
#[cfg(feature = "std")]
@@ -82,7 +81,6 @@ impl AmbiguousLanguages {
8281
}
8382

8483
/// An iterator over the possible languages.
85-
#[cfg(feature = "core")]
8684
pub fn iter(&self) -> impl Iterator<Item = Language> + '_ {
8785
Language::all().iter().enumerate().filter(move |(i, _)| self.0[*i]).map(|(_, l)| *l)
8886
}
@@ -113,7 +111,6 @@ pub enum Error {
113111
AmbiguousLanguages(AmbiguousLanguages),
114112
}
115113

116-
#[cfg(feature = "core")]
117114
impl fmt::Display for Error {
118115
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
119116
match *self {
@@ -469,7 +466,6 @@ impl Mnemonic {
469466
}
470467
}
471468

472-
#[cfg(feature = "core")]
473469
impl fmt::Display for Mnemonic {
474470
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
475471
for i in 0..self.0.len() {
@@ -486,7 +482,6 @@ impl fmt::Display for Mnemonic {
486482
}
487483
}
488484

489-
#[cfg(feature = "core")]
490485
impl str::FromStr for Mnemonic {
491486
type Err = Error;
492487

0 commit comments

Comments
 (0)