Fix clippy warnings

This commit is contained in:
Micha Reiser 2024-08-06 08:56:06 +02:00
parent fbc7b8c544
commit 547663f7a5
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -16,7 +16,7 @@ fn new_constructor() {
let input = MyInput::new(&db, true);
assert_eq!(input.required(&db), true);
assert!(input.required(&db));
assert_eq!(input.optional(&db), 0);
}
@ -26,7 +26,7 @@ fn builder_specify_optional() {
let input = MyInput::builder(true).optional(20).new(&db);
assert_eq!(input.required(&db), true);
assert!(input.required(&db));
assert_eq!(input.optional(&db), 20);
}
@ -38,6 +38,6 @@ fn builder_default_optional_value() {
.required_durability(Durability::HIGH)
.new(&db);
assert_eq!(input.required(&db), true);
assert!(input.required(&db));
assert_eq!(input.optional(&db), 0);
}

View file

@ -19,7 +19,7 @@ fn required_field_durability() {
.required_field_durability(Durability::HIGH)
.new(&db);
assert_eq!(input.required_field(&db), true);
assert!(input.required_field(&db));
assert_eq!(input.optional_field(&db), 0);
}
@ -32,6 +32,6 @@ fn optional_field_durability() {
.optional_field_durability(Durability::HIGH)
.new(&db);
assert_eq!(input.required_field(&db), true);
assert!(input.required_field(&db));
assert_eq!(input.optional_field(&db), 20);
}