🧹 chore: make clippy happy (#201)
This commit is contained in:
parent
ac4e29a93f
commit
12bfc5276a
6 changed files with 84 additions and 40 deletions
|
@ -132,9 +132,9 @@ impl SearchResults {
|
|||
) -> Self {
|
||||
Self {
|
||||
results,
|
||||
page_query,
|
||||
page_query: page_query.to_owned(),
|
||||
style: Style::default(),
|
||||
engine_errors_info,
|
||||
engine_errors_info: engine_errors_info.to_owned(),
|
||||
disallowed: Default::default(),
|
||||
filtered: Default::default(),
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ pub async fn aggregate(
|
|||
tasks.push(tokio::spawn(async move {
|
||||
search_engine
|
||||
.results(
|
||||
query,
|
||||
&query,
|
||||
page,
|
||||
user_agent.clone(),
|
||||
request_timeout,
|
||||
|
@ -162,13 +162,13 @@ pub async fn aggregate(
|
|||
filter_with_lists(
|
||||
&mut result_map,
|
||||
&mut blacklist_map,
|
||||
&file_path(FileType::BlockList)?,
|
||||
file_path(FileType::BlockList)?,
|
||||
)?;
|
||||
|
||||
filter_with_lists(
|
||||
&mut blacklist_map,
|
||||
&mut result_map,
|
||||
&file_path(FileType::AllowList)?,
|
||||
file_path(FileType::AllowList)?,
|
||||
)?;
|
||||
|
||||
drop(blacklist_map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue