Skip to content

Commit

Permalink
fix: clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Apr 29, 2024
1 parent ea55778 commit cb63165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contributors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async fn fetch_contributors() -> Result<Vec<Contributor>> {
.json::<Vec<Contributor>>()
.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())
Expand Down

0 comments on commit cb63165

Please sign in to comment.