summaryrefslogtreecommitdiff
path: root/src/api/search_results.rs
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-24 12:00:24 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-24 12:00:24 +0100
commitc2786c4b9d704128da80ce4ed6513b9f5507b680 (patch)
treefe17ca91b195a7b55b4b30f343a5a6eea95a755e /src/api/search_results.rs
parent8c4de2ddac066a072f376e9f30409b114aa9978c (diff)
polishingHEADmaster
Diffstat (limited to 'src/api/search_results.rs')
-rw-r--r--src/api/search_results.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/search_results.rs b/src/api/search_results.rs
index 6456ff9..585ba2c 100644
--- a/src/api/search_results.rs
+++ b/src/api/search_results.rs
@@ -14,7 +14,7 @@ pub async fn search_results(
app_state: web::Data<AppState>,
get_args: web::Query<SearchQueryOptions>,
) -> HttpResponse {
- let default: String = String::from("");
+ let default: String = String::default();
if get_args.id.is_some() {
let id: &str = get_args.id.as_ref().unwrap_or(&default);