aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/webidl_must_inherit.rs
diff options
context:
space:
mode:
authorKatasonov Vladyslav <cpud47@gmail.com>2019-06-04 23:57:26 +0300
committerKatasonov Vladyslav <cpud47@gmail.com>2019-06-04 23:57:26 +0300
commitc0c11394c402e38c5d7cd908d1a7ebddfc322103 (patch)
tree8519a95c4a126ba570dbbc45179d369dd15e0130 /components/script_plugins/webidl_must_inherit.rs
parent293e6c88e85602d155ddbcf154a59675efe95a6c (diff)
downloadservo-c0c11394c402e38c5d7cd908d1a7ebddfc322103.tar.gz
servo-c0c11394c402e38c5d7cd908d1a7ebddfc322103.zip
Run rustfmt.
Diffstat (limited to 'components/script_plugins/webidl_must_inherit.rs')
-rw-r--r--components/script_plugins/webidl_must_inherit.rs14
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",
+ )),
}
}