diff options
author | Andrew Gallant <jamslam@gmail.com> | 2017-03-14 15:09:16 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-03-14 15:09:24 -0400 |
commit | 0ebd5465b70deb511ce1e11e5661d8d86e9d62fd (patch) | |
tree | d42bae52cc7d48823c1039ec702754a738465f75 | |
parent | 5cb4bb9ea05bc0b9df79b355e4d67cfcfed8f129 (diff) |
remove allow(dead_code)
-rw-r--r-- | src/decoder.rs | 6 |
1 files changed, 0 insertions, 6 deletions
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<R: Read>(mut rdr: R) -> String { let mut s = String::new(); rdr.read_to_string(&mut s).unwrap(); |