Skip to content

Commit

Permalink
Remove uneeded field in testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethelflaed committed Aug 22, 2024
1 parent 3dee9a1 commit 096ed84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions diesel_derives/tests/identifiable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,10 @@ fn derive_identifiable_with_pk_serialize_as() {
struct Foo {
#[diesel(serialize_as = MyI32)]
id: i32,
#[allow(dead_code)]
foo: i32,
}

let foo1 = Foo { id: 1, foo: 2 };
let foo2 = Foo { id: 2, foo: 3 };
let foo1 = Foo { id: 1 };
let foo2 = Foo { id: 2 };
assert_eq!(MyI32(1), foo1.id());
assert_eq!(MyI32(2), foo2.id());
}

0 comments on commit 096ed84

Please sign in to comment.