From cb631656efa6795f732aa70cb0cbc3eea5120863 Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:01:35 -0400 Subject: [PATCH] fix: clippy issues --- src/main.rs | 2 +- src/pages/contributors.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9424363..ccc4cf4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,7 @@ async fn main() -> std::io::Result<()> { use actix_web::web; use leptos_actix::LeptosRoutes; - let addr = leptos_options.site_addr.clone(); + let addr = leptos_options.site_addr; println!("listening on http://{}", &addr); return actix_web::HttpServer::new(move || { diff --git a/src/pages/contributors.rs b/src/pages/contributors.rs index 0e4cd87..661783d 100644 --- a/src/pages/contributors.rs +++ b/src/pages/contributors.rs @@ -24,7 +24,7 @@ async fn fetch_contributors() -> Result> { .json::>() .await?; - let response = join_all(response.iter().map(|c| fetch_contributor_info(c))) + let response = join_all(response.iter().map(fetch_contributor_info)) .await .iter() .flat_map(|c| c.clone().ok())