Command::new(format!("git -C {} status", dir.as_path().display().to_string()));
I'm using the code above which converts my PathBuf variable to a String, but is this the best way? Is there a method to use the PathBuf variable without converting it?