Skip to content

Commit 46b096b

Browse files
committed
Always use "encoding" feature instead of "encoding_rs"
1 parent 2eecf00 commit 46b096b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/events/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
pub mod attributes;
3636

37-
#[cfg(feature = "encoding_rs")]
37+
#[cfg(feature = "encoding")]
3838
use encoding_rs::Encoding;
3939
use std::borrow::Cow;
4040
use 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())

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")]
9999
fn test_koi8_r_encoding() {
100100
let src: &[u8] = include_bytes!("documents/opennews_all.rss");
101101
let mut r = Reader::from_reader(src as &[u8]);

0 commit comments

Comments
 (0)