diff options
author | Vla Mai <[email protected]> | 2019-04-02 06:57:36 +0100 |
---|---|---|
committer | Vla Mai <[email protected]> | 2019-04-02 06:57:36 +0100 |
commit | b8726a12fd97d04544cb3fa98e7c3f55466a707e (patch) | |
tree | 6006271f3001e172348204e580bf10a9db1ed62b | |
parent | c1a4b1788b3dc539c580394fe06b9699e8868a47 (diff) |
small refactor
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 43f23ef..4f5b4fa 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -112,8 +112,6 @@ fn thousand_sep(inp:&str) -> String{ | |||
112 | for (i,c) in inp.to_string().chars().rev().enumerate(){ | 112 | for (i,c) in inp.to_string().chars().rev().enumerate(){ |
113 | if i % 3 == 0 && i != 0 && c.to_string() != "-"{ | 113 | if i % 3 == 0 && i != 0 && c.to_string() != "-"{ |
114 | result_string.push_str(","); | 114 | result_string.push_str(","); |
115 | result_string.push(c); | ||
116 | continue | ||
117 | } | 115 | } |
118 | result_string.push(c) | 116 | result_string.push(c) |
119 | } | 117 | } |