diff options
author | Paul Woolcock <paul@woolcock.us> | 2020-09-25 13:41:09 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2020-09-25 16:44:06 -0400 |
commit | a69d0ea928590cc2a20505c1bbf59d62b5d550a1 (patch) | |
tree | 64285e02e9ad7dae9ab44de7da1f080463760e99 /src/mastodon_client.rs | |
parent | 0b4ee7bfb285aa7c095ac050e2e0b8c659022113 (diff) |
Cargo-fmt pass
Diffstat (limited to 'src/mastodon_client.rs')
-rw-r--r-- | src/mastodon_client.rs | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/mastodon_client.rs b/src/mastodon_client.rs index 98d2cc3..a81bd4e 100644 --- a/src/mastodon_client.rs +++ b/src/mastodon_client.rs @@ -1,18 +1,20 @@ use std::borrow::Cow; -use crate::entities::prelude::*; -use crate::errors::Result; -use crate::http_send::{HttpSend, HttpSender}; -use crate::media_builder::MediaBuilder; -use crate::page::Page; -use crate::requests::{ - AddFilterRequest, - AddPushRequest, - StatusesRequest, - UpdateCredsRequest, - UpdatePushRequest, +use crate::{ + entities::prelude::*, + errors::Result, + http_send::{HttpSend, HttpSender}, + media_builder::MediaBuilder, + page::Page, + requests::{ + AddFilterRequest, + AddPushRequest, + StatusesRequest, + UpdateCredsRequest, + UpdatePushRequest, + }, + status_builder::NewStatus, }; -use crate::status_builder::NewStatus; /// Represents the set of methods that a Mastodon Client can do, so that /// implementations might be swapped out for testing @@ -197,11 +199,11 @@ pub trait MastodonClient<H: HttpSend = HttpSender> { fn new_status(&self, status: NewStatus) -> Result<Status> { unimplemented!("This method was not implemented"); } -/// GET /api/v1/timelines/public?local=true + /// GET /api/v1/timelines/public?local=true fn get_local_timeline(&self) -> Result<Page<Status, H>> { unimplemented!("This method was not implemented"); } -/// GET /api/v1/timelines/public?local=false + /// GET /api/v1/timelines/public?local=false fn get_federated_timeline(&self) -> Result<Page<Status, H>> { unimplemented!("This method was not implemented"); } |