1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-05-13 21:26:27 +02:00

remove allow(dead_code)

This commit is contained in:
Andrew Gallant 2017-03-14 15:09:16 -04:00
parent 5cb4bb9ea0
commit 0ebd5465b7

View File

@ -1,5 +1,3 @@
#![allow(dead_code)]
use std::cmp; use std::cmp;
use std::io::{self, Read}; use std::io::{self, Read};
@ -290,10 +288,6 @@ mod tests {
use super::{Bom, BomPeeker, DecodeReader}; 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 { fn read_to_string<R: Read>(mut rdr: R) -> String {
let mut s = String::new(); let mut s = String::new();
rdr.read_to_string(&mut s).unwrap(); rdr.read_to_string(&mut s).unwrap();