twixter

A twtxt command line client in Rust

git clone git://git.shimmy1996.com/twixter.git
commit 3daa3cf91f2ab91c8e11e661f6da27f0703d25ee
parent afa43c7b63befa7f23d4dd4a9892252a30f74e14
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Fri,  4 Oct 2019 20:32:14 -0400

Use usize for timeline length

Diffstat:
Msrc/config.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/config.rs b/src/config.rs
@@ -8,7 +8,7 @@ pub struct Config {
     pub twturl: String,
     pub pre_tweet_hook: String,
     pub post_tweet_hook: String,
-    pub limit_timeline: i32,
+    pub limit_timeline: usize,
     pub use_abs_time: bool,
     pub following: HashMap<String, String>,
 }
@@ -35,7 +35,7 @@ impl Config {
             twturl: twtxt_config["twturl"].to_owned(),
             pre_tweet_hook: pre_tweet_hook,
             post_tweet_hook: post_tweet_hook,
-            limit_timeline: twtxt_config["limit_timeline"].parse::<i32>().unwrap(),
+            limit_timeline: twtxt_config["limit_timeline"].parse::<usize>().unwrap(),
             use_abs_time: twtxt_config["use_abs_time"].parse::<bool>().unwrap(),
             following: following,
         }