diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-24 12:00:24 +0100 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-24 12:00:24 +0100 |
commit | c2786c4b9d704128da80ce4ed6513b9f5507b680 (patch) | |
tree | fe17ca91b195a7b55b4b30f343a5a6eea95a755e /src/api/search_results.rs | |
parent | 8c4de2ddac066a072f376e9f30409b114aa9978c (diff) |
Diffstat (limited to 'src/api/search_results.rs')
-rw-r--r-- | src/api/search_results.rs | 2 |
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); |