diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-10-07 16:24:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 10:24:15 +0200 |
commit | cb3a3a1e951d0eef9e2d095f87eaaa2f5ea160ad (patch) | |
tree | db5875394d6105a89de1254603a284de3ade57c6 /cli/repl.rs | |
parent | 7ab645f512057d74fda2d0edf2d336cea3ed524e (diff) |
refactor(cli/inspector): use &str for post_message (#7851)
This changes the signature of InspectorSession.post_message to take a
&str rather than a String avoiding the need call str.to_string at each
call site.
Diffstat (limited to 'cli/repl.rs')
-rw-r--r-- | cli/repl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/repl.rs b/cli/repl.rs index d07815d41..fbc37fac5 100644 --- a/cli/repl.rs +++ b/cli/repl.rs @@ -38,7 +38,7 @@ async fn post_message_and_poll( method: &str, params: Option<Value>, ) -> Result<Value, AnyError> { - let response = session.post_message(method.to_string(), params); + let response = session.post_message(method, params); tokio::pin!(response); loop { |