diff --git a/src/decoder.rs b/src/decoder.rs index 345389a5..22186708 100644 --- a/src/decoder.rs +++ b/src/decoder.rs @@ -1,5 +1,3 @@ -#![allow(dead_code)] - use std::cmp; use std::io::{self, Read}; @@ -290,10 +288,6 @@ mod tests { use super::{Bom, BomPeeker, DecodeReader}; - fn utf8(bytes: &[u8]) -> &str { - ::std::str::from_utf8(bytes).unwrap() - } - fn read_to_string(mut rdr: R) -> String { let mut s = String::new(); rdr.read_to_string(&mut s).unwrap();