mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Run rustfmt.
This commit is contained in:
parent
293e6c88e8
commit
c0c11394c4
1 changed files with 8 additions and 6 deletions
|
@ -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",
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue