mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 04:09:36 +00:00
Fix clippy warnings
This commit is contained in:
parent
fbc7b8c544
commit
547663f7a5
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue