diff options
author | Maan2003 <[email protected]> | 2021-06-13 05:05:29 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 05:05:29 +0100 |
commit | c50b4579ec842ac7c1f52e0e3c834d50fc9cd1bb (patch) | |
tree | e70b18936d014aa3038c4a6283e200f0a479aeb1 /crates/proc_macro_api/src | |
parent | 75370312fbfe072947ffdc568eebc9cb4c6108e4 (diff) |
clippy::useless_return
Diffstat (limited to 'crates/proc_macro_api/src')
-rw-r--r-- | crates/proc_macro_api/src/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/proc_macro_api/src/process.rs b/crates/proc_macro_api/src/process.rs index 99d05aef3..a9e43be62 100644 --- a/crates/proc_macro_api/src/process.rs +++ b/crates/proc_macro_api/src/process.rs | |||
@@ -77,7 +77,7 @@ impl ProcMacroProcessSrv { | |||
77 | 77 | ||
78 | match res { | 78 | match res { |
79 | Some(Response::Error(err)) => { | 79 | Some(Response::Error(err)) => { |
80 | return Err(tt::ExpansionError::ExpansionError(err.message)); | 80 | Err(tt::ExpansionError::ExpansionError(err.message)) |
81 | } | 81 | } |
82 | Some(res) => Ok(res.try_into().map_err(|err| { | 82 | Some(res) => Ok(res.try_into().map_err(|err| { |
83 | tt::ExpansionError::Unknown(format!("Fail to get response, reason : {:#?} ", err)) | 83 | tt::ExpansionError::Unknown(format!("Fail to get response, reason : {:#?} ", err)) |