|
@@ -1,9 +1,11 @@
|
|
|
use crate::Settings;
|
|
|
-use std::ffi::OsStr;
|
|
|
-use std::fs::{self, File};
|
|
|
-use std::io::{self, BufRead, BufReader, BufWriter, Write};
|
|
|
-use std::path::{Component, Path, PathBuf};
|
|
|
-use std::process::{Command, Stdio};
|
|
|
+use std::{
|
|
|
+ ffi::OsStr,
|
|
|
+ fs::{self, File},
|
|
|
+ io::{self, BufRead, BufReader, BufWriter, Write},
|
|
|
+ path::{Component, Path, PathBuf},
|
|
|
+ process::{Command, Stdio},
|
|
|
+};
|
|
|
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
|
|
|
|
|
|
/// Returns true if the path has a filename indicating that it is a high-desity
|
|
@@ -246,8 +248,7 @@ pub fn execute_with_verbosity(cmd: &mut Command, settings: &Settings) -> crate::
|
|
|
#[cfg(test)]
|
|
|
mod tests {
|
|
|
use super::{copy_dir, create_file, is_retina, resource_relpath, symlink_file};
|
|
|
- use std::io::Write;
|
|
|
- use std::path::PathBuf;
|
|
|
+ use std::{io::Write, path::PathBuf};
|
|
|
|
|
|
#[test]
|
|
|
fn create_file_with_parent_dirs() {
|