summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/follow_profile.rs2
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);