@@ -87,7 +87,6 @@ impl Mastodon {
87
87
( get ( local: bool , ) ) get_public_timeline: "timelines/public" => Vec <Status >,
88
88
( post ( uri: Cow <' static , str >, ) ) follows: "follows" => Account ,
89
89
( post) clear_notifications: "notifications/clear" => Empty ,
90
- ( post ( id: & str , ) ) dismiss_notification: "notifications/dismiss" => Empty ,
91
90
( get) get_push_subscription: "push/subscription" => Subscription ,
92
91
( delete) delete_push_subscription: "push/subscription" => Empty ,
93
92
( get) get_filters: "filters" => Vec <Filter >,
@@ -109,6 +108,7 @@ impl Mastodon {
109
108
( get) mute[ AccountId ] : "accounts/{}/mute" => Relationship ,
110
109
( get) unmute[ AccountId ] : "accounts/{}/unmute" => Relationship ,
111
110
( get) get_notification[ NotificationId ] : "notifications/{}" => Notification ,
111
+ ( post) dismiss_notification[ NotificationId ] : "notifications/{}/dismiss" => Empty ,
112
112
( get) get_status[ StatusId ] : "statuses/{}" => Status ,
113
113
( get) get_context[ StatusId ] : "statuses/{}/context" => Context ,
114
114
( get) get_card[ StatusId ] : "statuses/{}/card" => Card ,
@@ -171,7 +171,7 @@ impl Mastodon {
171
171
172
172
/// PUT /api/v1/filters/:id
173
173
pub async fn update_filter ( & self , id : & str , request : & mut AddFilterRequest ) -> Result < Filter > {
174
- let url = self . route ( format ! ( "/api/v1/filters/{}" , id ) ) ;
174
+ let url = self . route ( format ! ( "/api/v1/filters/{id}" ) ) ;
175
175
let response = self . client . put ( & url) . json ( & request) . send ( ) . await ?;
176
176
177
177
read_response ( response) . await
@@ -207,9 +207,9 @@ impl Mastodon {
207
207
pub async fn get_tagged_timeline ( & self , hashtag : String , local : bool ) -> Result < Vec < Status > > {
208
208
let base = "/api/v1/timelines/tag/" ;
209
209
let url = if local {
210
- self . route ( format ! ( "{}{ }?local=1" , base , hashtag ) )
210
+ self . route ( format ! ( "{base}{hashtag }?local=1" ) )
211
211
} else {
212
- self . route ( format ! ( "{}{}" , base , hashtag ) )
212
+ self . route ( format ! ( "{base}{hashtag}" ) )
213
213
} ;
214
214
215
215
self . get ( url) . await
0 commit comments