diff options
Diffstat (limited to 'components/script_plugins/webidl_must_inherit.rs')
-rw-r--r-- | components/script_plugins/webidl_must_inherit.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/components/script_plugins/webidl_must_inherit.rs b/components/script_plugins/webidl_must_inherit.rs index f853211d0f2..7d51b7f10f7 100644 --- a/components/script_plugins/webidl_must_inherit.rs +++ b/components/script_plugins/webidl_must_inherit.rs @@ -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", + )), } } |