mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
cargo fmt
This commit is contained in:
parent
aabd41cafc
commit
5ac6804bb3
9 changed files with 38 additions and 61 deletions
|
@ -76,9 +76,7 @@ impl ProcMacroProcessSrv {
|
|||
.map_err(|_| tt::ExpansionError::Unknown("proc macro server crashed".into()))?;
|
||||
|
||||
match res {
|
||||
Some(Response::Error(err)) => {
|
||||
Err(tt::ExpansionError::ExpansionError(err.message))
|
||||
}
|
||||
Some(Response::Error(err)) => 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