This commit is contained in:
parent
f51c5dc9d5
commit
f050daf035
12 changed files with 80 additions and 85 deletions
|
@ -9,9 +9,7 @@ impl TempDir {
|
|||
if !path.exists() {
|
||||
std::fs::create_dir_all(&path).unwrap();
|
||||
}
|
||||
TempDir {
|
||||
path
|
||||
}
|
||||
TempDir { path }
|
||||
}
|
||||
|
||||
pub fn push<S: Into<String>>(&mut self, path: S) {
|
||||
|
@ -45,4 +43,4 @@ impl ToString for TempDir {
|
|||
fn to_string(&self) -> String {
|
||||
self.path.to_str().unwrap().to_string()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue