diff options
author | Paul Woolcock <paul@woolcock.us> | 2018-09-20 19:06:23 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2018-10-04 05:14:10 -0400 |
commit | 9a080583f0577d3f77eaf7be55758835c56ea61e (patch) | |
tree | f0a49fd7879a8de49e84be1a676de2faa2df264c /examples | |
parent | 6a20afde387a6984ad84b4d9c29a9955c800484f (diff) |
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`.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/follow_profile.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<error::Error>> { 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); |