mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-09 18:02:48 +00:00
clippy::useless_return
This commit is contained in:
parent
75370312fb
commit
c50b4579ec
10 changed files with 15 additions and 15 deletions
|
@ -77,7 +77,7 @@ impl ProcMacroProcessSrv {
|
|||
|
||||
match res {
|
||||
Some(Response::Error(err)) => {
|
||||
return Err(tt::ExpansionError::ExpansionError(err.message));
|
||||
Err(tt::ExpansionError::ExpansionError(err.message))
|
||||
}
|
||||
Some(res) => Ok(res.try_into().map_err(|err| {
|
||||
tt::ExpansionError::Unknown(format!("Fail to get response, reason : {:#?} ", err))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue