aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins/strider/src/search
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-06-17 17:47:28 +0200
committerGitHub <noreply@github.com>2023-06-17 17:47:28 +0200
commit29a391f60eb3aeecba4682dfdb38cdcd2a61b2b2 (patch)
tree658c84255ebb026c9cf417fcb7a19734a290ac53 /default-plugins/strider/src/search
parentdocs(changelog): more plugin api methods (diff)
downloadsl0ppij-29a391f60eb3aeecba4682dfdb38cdcd2a61b2b2.tar.gz
sl0ppij-29a391f60eb3aeecba4682dfdb38cdcd2a61b2b2.tar.xz
sl0ppij-29a391f60eb3aeecba4682dfdb38cdcd2a61b2b2.zip
refactor(plugins): improve api (#2552)
* refactor(plugins): improve shim API * style(fmt): rustfmt
Diffstat (limited to 'default-plugins/strider/src/search')
-rw-r--r--default-plugins/strider/src/search/search_state.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/default-plugins/strider/src/search/search_state.rs b/default-plugins/strider/src/search/search_state.rs
index c8707cc9..865a98e5 100644
--- a/default-plugins/strider/src/search/search_state.rs
+++ b/default-plugins/strider/src/search/search_state.rs
@@ -155,13 +155,13 @@ impl SearchState {
if !self.search_term.is_empty() {
post_message_to(
"file_name_search",
- serde_json::to_string(&MessageToSearch::Search).unwrap(),
- "".to_owned(),
+ &serde_json::to_string(&MessageToSearch::Search).unwrap(),
+ "",
);
post_message_to(
"file_contents_search",
- serde_json::to_string(&MessageToSearch::Search).unwrap(),
- "".to_owned(),
+ &serde_json::to_string(&MessageToSearch::Search).unwrap(),
+ "",
);
self.file_name_search_results.clear();
self.file_contents_search_results.clear();