From 5ac6804bb3a07b959e8c2c3534255a8d6bb4948c Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:48:15 +0530 Subject: cargo fmt --- crates/proc_macro_api/src/process.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/proc_macro_api') diff --git a/crates/proc_macro_api/src/process.rs b/crates/proc_macro_api/src/process.rs index a9e43be62..38eac6c17 100644 --- a/crates/proc_macro_api/src/process.rs +++ b/crates/proc_macro_api/src/process.rs @@ -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)) })?), -- cgit v1.2.3