wtf???
parent
d0b659a6eb
commit
a95b00cf73
|
@ -83,10 +83,10 @@ pub fn write_json(users_list: &Vec<User>) -> Result<()> {
|
||||||
for i in 0..users_list.len() {
|
for i in 0..users_list.len() {
|
||||||
// Serialize the users
|
// Serialize the users
|
||||||
users_json += &serde_json::to_string(&users_list[i])?;
|
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
|
// don't append newline if it's the last element
|
||||||
users_json += "\n";
|
users_json += "\n";
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write to the file
|
// Write to the file
|
||||||
|
|
Loading…
Reference in New Issue