chore: make clippy happy
This commit is contained in:
parent
5f25f85a5e
commit
1193a1967d
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue