chore: make clippy happy

This commit is contained in:
Jan Christian Grünhage 2023-01-01 22:29:36 +01:00
parent 5f25f85a5e
commit 1193a1967d
Signed by: jcgruenhage
GPG key ID: EEC1170CE56FA2ED

View file

@ -85,11 +85,7 @@ pub async fn get_record(
.result .result
.iter() .iter()
.find(|record| { .find(|record| {
if std::mem::discriminant(&record.content) == std::mem::discriminant(&r#type) { std::mem::discriminant(&record.content) == std::mem::discriminant(&r#type)
true
} else {
false
}
}) })
.context("No matching record found")? .context("No matching record found")?
.id .id