mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: remove unused method
This commit is contained in:
parent
7d103a0a64
commit
91df9b14da
1 changed files with 0 additions and 8 deletions
|
@ -124,14 +124,6 @@ pub fn log_info<T: AsRef<str>, U: AsRef<str>>(msg: T, par: U) {
|
|||
println!("{}: {}", msg.as_ref(), par.as_ref());
|
||||
}
|
||||
|
||||
pub fn repeat_component(s: &str, n: u32) -> String {
|
||||
let mut path = PathBuf::from("");
|
||||
for _ in 0..n {
|
||||
path.push(s);
|
||||
}
|
||||
path.to_str().unwrap().to_owned()
|
||||
}
|
||||
|
||||
pub fn recursive_copy(src: &Path, dest: &Path) -> Result<()> {
|
||||
if try!(fs::metadata(src)).is_dir() {
|
||||
for entry in try!(fs::read_dir(src)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue