Skip to content

Commit

Permalink
error in test_struct_default fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
grgi committed Oct 6, 2023
1 parent e5c3827 commit 1764275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/postgres/derives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ async fn test_struct_default() -> anyhow::Result<()> {
#[derive(Debug, sqlx::FromRow)]
#[sqlx(default)]
struct HasDefault {
value: Option<i32>,
not_default: Option<i32>,
default_a: Option<String>,
default_b: Option<i32>,
}
Expand All @@ -639,7 +639,7 @@ async fn test_struct_default() -> anyhow::Result<()> {
.await?;
println!("{has_default:?}");

assert_eq!(has_default.value, Some(1));
assert_eq!(has_default.not_default, Some(1));
assert_eq!(has_default.default_a, None);
assert_eq!(has_default.default_b, None);

Expand Down

0 comments on commit 1764275

Please sign in to comment.