From c2786c4b9d704128da80ce4ed6513b9f5507b680 Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Fri, 24 Jan 2025 12:00:24 +0100 Subject: polishing --- src/api/search_results.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/search_results.rs') 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, get_args: web::Query, ) -> 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); -- cgit v1.2.3