Use != 0 instead of > 0

This commit is contained in:
Jon Pacheco 2020-03-31 14:15:29 +01:00
parent f4e4836fa6
commit 8d454c48d0

View File

@ -91,7 +91,7 @@ ORDER BY id
for rec in recs {
println!(
"- [{}] {}: {}",
if rec.done > 0 { "x" } else { " " },
if rec.done != 0 { "x" } else { " " },
rec.id,
&rec.description,
);