mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-25 01:59:08 -05:00
refactor: clippy warnings
This commit is contained in:
parent
9e9c494367
commit
bbe359364a
|
@ -471,7 +471,7 @@ fn query_from_filter(f: &ReqFilter) -> (String, Vec<Box<dyn ToSql>>) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if authvec.len() > 0 {
|
||||
if !authvec.is_empty() {
|
||||
let authors_clause = format!("({})", auth_searches.join(" OR "));
|
||||
filter_components.push(authors_clause);
|
||||
} else {
|
||||
|
@ -511,7 +511,7 @@ fn query_from_filter(f: &ReqFilter) -> (String, Vec<Box<dyn ToSql>>) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if idvec.len() > 0 {
|
||||
if !idvec.is_empty() {
|
||||
let id_clause = format!("({})", id_searches.join(" OR "));
|
||||
filter_components.push(id_clause);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user