From b8726a12fd97d04544cb3fa98e7c3f55466a707e Mon Sep 17 00:00:00 2001 From: Vla Mai Date: Tue, 2 Apr 2019 10:57:36 +0500 Subject: small refactor --- src/main.rs | 2 -- 1 file changed, 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{ for (i,c) in inp.to_string().chars().rev().enumerate(){ if i % 3 == 0 && i != 0 && c.to_string() != "-"{ result_string.push_str(","); - result_string.push(c); - continue } result_string.push(c) } -- cgit v1.2.3