diff --git a/components/script_plugins/webidl_must_inherit.rs b/components/script_plugins/webidl_must_inherit.rs index 2fb45f4cdc52..61fabf0ddf8b 100644 --- a/components/script_plugins/webidl_must_inherit.rs +++ b/components/script_plugins/webidl_must_inherit.rs @@ -78,7 +78,7 @@ fn get_webidl_path(struct_name: &str) -> io::Result { dir.push("components/script/dom/webidls/"); dir.push(format!("{}.webidl", struct_name)); - return Ok(dir); + Ok(dir) } fn is_webidl_ty(cx: &LateContext, ty: &ty::TyS) -> bool {