Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonliu2018 committed Dec 1, 2024
1 parent 42ce24d commit 16e0dd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/mysql/todos/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ ORDER BY id
for rec in recs {
println!(
"- [{}] {}: {}",
if rec.done != 0 { "x" } else { " " },
rec.id,
&rec.description,
if rec.done.unwrap_or(0) != 0 { "x" } else { " " },
rec.id.unwrap_or(0),
&rec.description.unwrap_or("".to_string()),
);
}

Expand Down

0 comments on commit 16e0dd4

Please sign in to comment.