File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3434
3535pub mod attributes;
3636
37- #[ cfg( feature = "encoding_rs " ) ]
37+ #[ cfg( feature = "encoding " ) ]
3838use encoding_rs:: Encoding ;
3939use std:: borrow:: Cow ;
4040use std:: collections:: HashMap ;
@@ -554,7 +554,7 @@ impl<'a> BytesDecl<'a> {
554554 }
555555
556556 /// Gets the decoder struct
557- #[ cfg( feature = "encoding_rs " ) ]
557+ #[ cfg( feature = "encoding " ) ]
558558 pub fn encoder ( & self ) -> Option < & ' static Encoding > {
559559 self . encoding ( )
560560 . and_then ( |e| e. ok ( ) )
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ fn test_comment_starting_with_gt() {
9595}
9696
9797#[ test]
98- #[ cfg( feature = "encoding_rs " ) ]
98+ #[ cfg( feature = "encoding " ) ]
9999fn test_koi8_r_encoding ( ) {
100100 let src: & [ u8 ] = include_bytes ! ( "documents/opennews_all.rss" ) ;
101101 let mut r = Reader :: from_reader ( src as & [ u8 ] ) ;
You can’t perform that action at this time.
0 commit comments