diff options
author | Paul Woolcock <paul@woolcock.us> | 2018-09-06 16:28:47 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2018-09-07 00:53:01 -0400 |
commit | 34e2c008665fc0591727a8c601ca6bdc21ad890a (patch) | |
tree | e814e6d6ceb44b6b74a6f43563fdc974248fa860 /src/mastodon_client.rs | |
parent | 20a9c69adc24f0dc20cdd8b9da234643b4f41164 (diff) |
change `POST /search` to `GET /search`
Diffstat (limited to 'src/mastodon_client.rs')
-rw-r--r-- | src/mastodon_client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mastodon_client.rs b/src/mastodon_client.rs index 4440299..b33dace 100644 --- a/src/mastodon_client.rs +++ b/src/mastodon_client.rs @@ -91,8 +91,8 @@ pub trait MastodonClient<H: HttpSend = HttpSender> { fn reject_follow_request(&self, id: &str) -> Result<Empty> { unimplemented!("This method was not implemented"); } - /// POST /api/v1/search - fn search(&self, q: String, resolve: bool) -> Result<SearchResult> { + /// GET /api/v1/search + fn search<'a>(&self, q: &'a str, resolve: bool) -> Result<SearchResult> { unimplemented!("This method was not implemented"); } /// POST /api/v1/follows |