fix(client): fix broken paged_routes_with_id methods

BREAKING CHANGE: technically this breaks the API, but these methods
wouldn't have worked this way anyway, so I don't feel bad about it

Closes #42
master
Paul Woolcock 6 years ago
parent 2a6e922da7
commit c66c305df5
  1. 6
      src/lib.rs
  2. 4
      src/macros.rs

@ -159,13 +159,13 @@ pub trait MastodonClient<H: HttpSend = HttpSender> {
fn followers(&self, id: &str) -> Result<Page<Account, H>> { fn followers(&self, id: &str) -> Result<Page<Account, H>> {
unimplemented!("This method was not implemented"); unimplemented!("This method was not implemented");
} }
fn following(&self) -> Result<Account> { fn following(&self, id: &str) -> Result<Page<Account, H>> {
unimplemented!("This method was not implemented"); unimplemented!("This method was not implemented");
} }
fn reblogged_by(&self) -> Result<Account> { fn reblogged_by(&self, id: &str) -> Result<Page<Account, H>> {
unimplemented!("This method was not implemented"); unimplemented!("This method was not implemented");
} }
fn favourited_by(&self) -> Result<Account> { fn favourited_by(&self, id: &str) -> Result<Page<Account, H>> {
unimplemented!("This method was not implemented"); unimplemented!("This method was not implemented");
} }
fn unblock_domain(&self, domain: String) -> Result<Empty> { fn unblock_domain(&self, domain: String) -> Result<Empty> {

@ -235,6 +235,8 @@ macro_rules! paged_routes_with_id {
} }
} }
route!{$($rest)*} paged_routes_with_id!{$($rest)*}
}; };
() => {}
} }

Loading…
Cancel
Save