Dastan-glitch 4 лет назад
Родитель
Сommit
5bd5cbe903
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      bin/dao-cli/src/main.rs
  2. 1 1
      bin/daod/src/main.rs

+ 1 - 1
bin/dao-cli/src/main.rs

@@ -58,7 +58,7 @@ async fn start(options: CliDao) -> Result<()> {
         Some(CliDaoSubCommands::Hello {}) => {
             let reply = client.say_hello().await?;
             println!("Server replied: {}", &reply.to_string());
-            return Ok(());
+            return Ok(())
         }
         None => {}
     }

+ 1 - 1
bin/daod/src/main.rs

@@ -40,7 +40,7 @@ struct JsonRpcInterface {}
 impl RequestHandler for JsonRpcInterface {
     async fn handle_request(&self, req: JsonRequest, _executor: Arc<Executor<'_>>) -> JsonResult {
         if req.params.as_array().is_none() {
-            return JsonResult::Err(jsonerr(InvalidParams, None, req.id));
+            return JsonResult::Err(jsonerr(InvalidParams, None, req.id))
         }
 
         debug!(target: "RPC", "--> {}", serde_json::to_string(&req).unwrap());