@@ -42,7 +42,6 @@ extern crate rand;
4242#[ cfg( feature = "serde" ) ]
4343pub extern crate serde;
4444
45- #[ cfg( feature = "core" ) ]
4645use 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" ) ]
117114impl 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" ) ]
473469impl 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" ) ]
490485impl str:: FromStr for Mnemonic {
491486 type Err = Error ;
492487
0 commit comments