diff --git a/src/subcommands/diff.rs b/src/subcommands/diff.rs index 56a7e7143..215d45e38 100644 --- a/src/subcommands/diff.rs +++ b/src/subcommands/diff.rs @@ -172,7 +172,7 @@ where #[cfg(test)] mod main_tests { - use std::io::{Cursor, Read, Seek}; + use std::io::Cursor; use std::path::PathBuf; use super::{diff, diff_args_set_unified_context}; @@ -231,11 +231,4 @@ mod main_tests { } ); } - - fn _read_to_string(cursor: &mut Cursor>) -> String { - let mut s = String::new(); - cursor.rewind().unwrap(); - cursor.read_to_string(&mut s).unwrap(); - s - } }