aboutsummaryrefslogtreecommitdiff
path: root/src/commands/follow.rs
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-25 04:07:32 -0700
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-25 04:07:32 -0700
commitccccc6e1b2ebd62a35715f71c746f3a3b9c0b97e (patch)
tree8bb44e53dab2a9b5f94284ca0f390061032eb4f1 /src/commands/follow.rs
parent580f44092358cc260db00ec9871caecac62de361 (diff)
begin removing unwrap()
Diffstat (limited to 'src/commands/follow.rs')
-rw-r--r--src/commands/follow.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/commands/follow.rs b/src/commands/follow.rs
index b2f0aa6..ad121e5 100644
--- a/src/commands/follow.rs
+++ b/src/commands/follow.rs
@@ -13,8 +13,7 @@ pub static UNFOLLOW: Command = Command {
};
fn unfl(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) {
- // TODO handle this unwrap
- let screen_name = line.trim(); //u64::from_str(&line).unwrap();
+ let screen_name = line.trim();
queryer.do_api_post(&format!("{}?screen_name={}", FOLLOW_URL, screen_name));
}
@@ -25,7 +24,6 @@ pub static FOLLOW: Command = Command {
};
fn fl(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) {
- // TODO handle this unwrap
- let screen_name = line.trim(); //u64::from_str(&line).unwrap();
+ let screen_name = line.trim();
println!("fl resp: {:?}", queryer.do_api_post(&format!("{}?screen_name={}", UNFOLLOW_URL, screen_name)));
}