diff --git a/src/db.rs b/src/db.rs index 8dacbd6..d28451b 100644 --- a/src/db.rs +++ b/src/db.rs @@ -98,12 +98,9 @@ impl Database for SqliteDatabase { valid, created, last_used, - }| { - if valid { - UserTokenEntry::Valid(UserToken::from(token), created, last_used) - } else { - UserTokenEntry::Invalid(UserToken::from(token), created, last_used) - } + }| match valid { + true => UserTokenEntry::Valid(UserToken::from(token), created, last_used), + false => UserTokenEntry::Invalid(UserToken::from(token), created, last_used), }, )) }