From d1b53b675c86ef87f566a63f02367504a75aee0c Mon Sep 17 00:00:00 2001 From: Michal S Date: Sun, 4 Sep 2022 22:16:39 +0100 Subject: [PATCH] AUR search results come after repo results --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0a29bbe..9c11385 100644 --- a/src/main.rs +++ b/src/main.rs @@ -117,16 +117,16 @@ async fn cmd_search(args: SearchArgs, options: Options) { let aur = args.aur || both; let repo = args.repo || both; - if aur { - tracing::info!("Searching AUR for {}", &query_string); - let res = operations::aur_search(&query_string, args.by, options).await; - results.extend(res); - } if repo { tracing::info!("Searching repos for {}", &query_string); let res = operations::search(&query_string, options).await; results.extend(res); } + if aur { + tracing::info!("Searching AUR for {}", &query_string); + let res = operations::aur_search(&query_string, args.by, options).await; + results.extend(res); + } if results.is_empty() { tracing::info!("No results found");