From a95b00cf7334276e15318b594fa59f08bc186ef1 Mon Sep 17 00:00:00 2001 From: Erin Nova Date: Sun, 18 Jul 2021 16:35:28 -0400 Subject: [PATCH] wtf??? --- src/file_io.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file_io.rs b/src/file_io.rs index f681c3e..27d9efc 100644 --- a/src/file_io.rs +++ b/src/file_io.rs @@ -83,10 +83,10 @@ pub fn write_json(users_list: &Vec) -> Result<()> { for i in 0..users_list.len() { // Serialize the users users_json += &serde_json::to_string(&users_list[i])?; - //if i != users_list.len() - 1 { + if i != users_list.len()-1 { // don't append newline if it's the last element users_json += "\n"; - //} + } } // Write to the file