cargo fmt

This commit is contained in:
Maan2003 2021-06-13 09:48:15 +05:30
parent aabd41cafc
commit 5ac6804bb3
No known key found for this signature in database
GPG key ID: E9AF024BA63C70ED
9 changed files with 38 additions and 61 deletions

View file

@ -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))
})?),