From f27163d2c7ddd1540fdddacabba265e15c6e7ef9 Mon Sep 17 00:00:00 2001 From: Harutaka Kawamura Date: Sun, 6 Nov 2022 03:11:26 +0900 Subject: [PATCH] Remove needless return (#597) --- src/cst/matchers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cst/matchers.rs b/src/cst/matchers.rs index 4cd93a578c..5724265a1c 100644 --- a/src/cst/matchers.rs +++ b/src/cst/matchers.rs @@ -4,6 +4,6 @@ use libcst_native::Module; pub fn match_module(module_text: &str) -> Result { match libcst_native::parse_module(module_text, None) { Ok(module) => Ok(module), - Err(_) => return Err(anyhow::anyhow!("Failed to extract CST from source.")), + Err(_) => Err(anyhow::anyhow!("Failed to extract CST from source.")), } }