nixenv: remove unnecessary single quotes

The debug representation of a `PathBuf` provides double quotes already.
This commit is contained in:
Cole Helbling 2020-04-03 17:37:21 -07:00
parent 42b4bb2118
commit 9736cf08fe
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -136,12 +136,8 @@ impl Error {
pub fn display(self) -> String {
match self {
Error::Io(e) => format!("Failed during the setup of executing nix-env: {:?}", e),
Error::CreateFile(path, err) => {
format!("Failed to create file '{:?}': {:?}", path, err)
}
Error::RemoveFile(path, err) => {
format!("Failed to remove file '{:?}': {:?}", path, err)
}
Error::CreateFile(path, err) => format!("Failed to create file {:?}: {:?}", path, err),
Error::RemoveFile(path, err) => format!("Failed to remove file {:?}: {:?}", path, err),
Error::WriteFile(file, err) => {
format!("Failed to write to file '{:?}': {:?}", file, err)
}