From c66c305df5fa8179769f77720f9f9c4bcd65ffaa Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Wed, 29 Aug 2018 11:29:12 -0400 Subject: [PATCH] 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 --- src/lib.rs | 6 +++--- src/macros.rs | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e589606..ad924ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -159,13 +159,13 @@ pub trait MastodonClient { fn followers(&self, id: &str) -> Result> { unimplemented!("This method was not implemented"); } - fn following(&self) -> Result { + fn following(&self, id: &str) -> Result> { unimplemented!("This method was not implemented"); } - fn reblogged_by(&self) -> Result { + fn reblogged_by(&self, id: &str) -> Result> { unimplemented!("This method was not implemented"); } - fn favourited_by(&self) -> Result { + fn favourited_by(&self, id: &str) -> Result> { unimplemented!("This method was not implemented"); } fn unblock_domain(&self, domain: String) -> Result { diff --git a/src/macros.rs b/src/macros.rs index 149a714..8188852 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -235,6 +235,8 @@ macro_rules! paged_routes_with_id { } } - route!{$($rest)*} + paged_routes_with_id!{$($rest)*} }; + + () => {} }