Skip to content

Commit

Permalink
Added formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshith-ravi committed May 7, 2020
1 parent 101d612 commit 335b515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub enum BaseMessage {
},
TriggerHookResponse {
request_id: String,
hook: Option<String>
hook: Option<String>,
},
DeclareFunctionRequest {
request_id: String,
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/json_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ fn decode_internal(data: &[u8]) -> Option<BaseMessage> {
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 })
Expand Down

0 comments on commit 335b515

Please sign in to comment.