Run rustfmt.

This commit is contained in:
Katasonov Vladyslav 2019-06-04 23:57:26 +03:00
parent 293e6c88e8
commit c0c11394c4

View file

@ -73,12 +73,14 @@ fn get_manifest_dir() -> io::Result<path::PathBuf> {
dir.push(var);
Ok(dir)
},
Err(env::VarError::NotPresent) => {
Err(io::Error::new(io::ErrorKind::NotFound, "CARGO_MANIFEST_DIR environment variable was not found"))
},
Err(env::VarError::NotUnicode(_)) => {
Err(io::Error::new(io::ErrorKind::InvalidData, "CARGO_MANIFEST_DIR environment variable's contents are non valid UTF-8"))
},
Err(env::VarError::NotPresent) => Err(io::Error::new(
io::ErrorKind::NotFound,
"CARGO_MANIFEST_DIR environment variable was not found",
)),
Err(env::VarError::NotUnicode(_)) => Err(io::Error::new(
io::ErrorKind::InvalidData,
"CARGO_MANIFEST_DIR environment variable's contents are non valid UTF-8",
)),
}
}