diff options
author | iximeow <me@iximeow.net> | 2017-10-25 04:07:32 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2017-10-25 04:07:32 -0700 |
commit | 4a8d9db54cff6b45cb44712d851de0cbb3da37bf (patch) | |
tree | 8bb44e53dab2a9b5f94284ca0f390061032eb4f1 /src/commands/follow.rs | |
parent | 7f71f824801950b11ff6dcab9eb45549fbe4dce6 (diff) |
begin removing unwrap()
Diffstat (limited to 'src/commands/follow.rs')
-rw-r--r-- | src/commands/follow.rs | 6 |
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))); } |