remove unnecessary assert for test

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-18 20:26:32 -04:00 committed by June
parent 694b926366
commit 96e1938616
2 changed files with 2 additions and 5 deletions

View file

@ -471,10 +471,7 @@ wildcard_dependencies = "warn"
or_fun_call = "warn"
unnecessary_lazy_evaluations = "warn"
# as_conversions = "warn"
# seems to be broken
#assertions_on_result_states = "warn"
assertions_on_result_states = "warn"
default_union_representation = "warn"
deref_by_slicing = "warn"
empty_drop = "warn"

View file

@ -1098,7 +1098,7 @@ mod tests {
fn invalid_pagnation_tokens() {
fn token_is_err(token: &str) {
let token: Result<PagnationToken> = PagnationToken::from_str(token);
assert!(token.is_err());
token.unwrap_err();
}
token_is_err("231_2_noabool");