Skip to content

Commit

Permalink
Delete unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Aug 14, 2024
1 parent 38e5831 commit 8e6cf0c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/subcommands/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -231,11 +231,4 @@ mod main_tests {
}
);
}

fn _read_to_string(cursor: &mut Cursor<Vec<u8>>) -> String {
let mut s = String::new();
cursor.rewind().unwrap();
cursor.read_to_string(&mut s).unwrap();
s
}
}

0 comments on commit 8e6cf0c

Please sign in to comment.