use as_str instead clone.
This commit is contained in:
parent
99c96a0b41
commit
f52148194f
@ -53,7 +53,7 @@ fn main() -> io::Result<()> {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
||||
let start_path = if args.len() > 1 {
|
||||
PathBuf::from(args[1].clone())
|
||||
PathBuf::from(args[1].as_str())
|
||||
} else {
|
||||
PathBuf::from(".")
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user