Skip to content

Commit cb63165

Browse files
committed
fix: clippy issues
1 parent ea55778 commit cb63165

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async fn main() -> std::io::Result<()> {
2020
use actix_web::web;
2121
use leptos_actix::LeptosRoutes;
2222

23-
let addr = leptos_options.site_addr.clone();
23+
let addr = leptos_options.site_addr;
2424
println!("listening on http://{}", &addr);
2525

2626
return actix_web::HttpServer::new(move || {

src/pages/contributors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async fn fetch_contributors() -> Result<Vec<Contributor>> {
2424
.json::<Vec<Contributor>>()
2525
.await?;
2626

27-
let response = join_all(response.iter().map(|c| fetch_contributor_info(c)))
27+
let response = join_all(response.iter().map(fetch_contributor_info))
2828
.await
2929
.iter()
3030
.flat_map(|c| c.clone().ok())

0 commit comments

Comments
 (0)