We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea55778 commit cb63165Copy full SHA for cb63165
src/main.rs
@@ -20,7 +20,7 @@ async fn main() -> std::io::Result<()> {
20
use actix_web::web;
21
use leptos_actix::LeptosRoutes;
22
23
- let addr = leptos_options.site_addr.clone();
+ let addr = leptos_options.site_addr;
24
println!("listening on http://{}", &addr);
25
26
return actix_web::HttpServer::new(move || {
src/pages/contributors.rs
@@ -24,7 +24,7 @@ async fn fetch_contributors() -> Result<Vec<Contributor>> {
.json::<Vec<Contributor>>()
.await?;
27
- let response = join_all(response.iter().map(|c| fetch_contributor_info(c)))
+ let response = join_all(response.iter().map(fetch_contributor_info))
28
.await
29
.iter()
30
.flat_map(|c| c.clone().ok())
0 commit comments