From 335b515f017677c3f723dd6305229252216c96d9 Mon Sep 17 00:00:00 2001 From: Rakshith Ravi Date: Thu, 7 May 2020 15:01:15 +0530 Subject: [PATCH] Added formatting --- src/models/messages.rs | 2 +- src/protocol/json_protocol.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/messages.rs b/src/models/messages.rs index 00a7e91..a21d6d0 100755 --- a/src/models/messages.rs +++ b/src/models/messages.rs @@ -33,7 +33,7 @@ pub enum BaseMessage { }, TriggerHookResponse { request_id: String, - hook: Option + hook: Option, }, DeclareFunctionRequest { request_id: String, diff --git a/src/protocol/json_protocol.rs b/src/protocol/json_protocol.rs index fe44457..9cc7a4f 100644 --- a/src/protocol/json_protocol.rs +++ b/src/protocol/json_protocol.rs @@ -213,7 +213,7 @@ fn decode_internal(data: &[u8]) -> Option { let request_id = result[request_keys::REQUEST_ID].as_str()?.to_string(); let hook = match result[request_keys::HOOK].as_str() { Some(string) => Some(string.to_string()), - None => None + None => None, }; Some(BaseMessage::TriggerHookResponse { request_id, hook })