diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2022-02-07 17:05:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 17:05:49 +0100 |
commit | 4799aaac15285833341d1e0471a2559bd325982f (patch) | |
tree | ac0913664e2623aff672054940a2adce67812740 /core/inspector.rs | |
parent | bf22f114a6e049744866ebaba48faec2cb86549b (diff) |
refactor: factor out CDP message types (#13551)
Diffstat (limited to 'core/inspector.rs')
-rw-r--r-- | core/inspector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/inspector.rs b/core/inspector.rs index 97a04407d..b6c86fb79 100644 --- a/core/inspector.rs +++ b/core/inspector.rs @@ -649,10 +649,10 @@ impl LocalInspectorSession { self.notification_queue.split_off(0) } - pub async fn post_message( + pub async fn post_message<T: serde::Serialize>( &mut self, method: &str, - params: Option<serde_json::Value>, + params: Option<T>, ) -> Result<serde_json::Value, Error> { let id = self.next_message_id; self.next_message_id += 1; |