From ef59009aa1dfd496e51199b1396858c01aa8cd33 Mon Sep 17 00:00:00 2001 From: krk Date: Tue, 16 Apr 2019 21:18:57 +0200 Subject: [PATCH] Remove redundant return keyword. --- components/script_plugins/webidl_must_inherit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script_plugins/webidl_must_inherit.rs b/components/script_plugins/webidl_must_inherit.rs index 2fb45f4cdc5..61fabf0ddf8 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 {