From 9a080583f0577d3f77eaf7be55758835c56ea61e Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Thu, 20 Sep 2018 19:06:23 -0400 Subject: feature(api): Change `u64` ids to `&str` Breaking change: All the entities with an `id` property have String ids, but all endpoints that take ids used `u64` ids. This changes that so that all the methods that take ids, take them as `&str`. --- examples/follow_profile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/follow_profile.rs b/examples/follow_profile.rs index ba0b8c3..9e589d2 100644 --- a/examples/follow_profile.rs +++ b/examples/follow_profile.rs @@ -9,7 +9,7 @@ use std::error; fn main() -> Result<(), Box> { let mastodon = register::get_mastodon_data()?; let input = register::read_line("Enter the account id you'd like to follow: ")?; - let new_follow = mastodon.follow(input.trim().parse()?)?; + let new_follow = mastodon.follow(input.trim())?; println!("{:#?}", new_follow); -- cgit v1.2.3