Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hesampakdaman committed May 22, 2024
1 parent 8b2f441 commit f133ec3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ fn main() -> Result<(), std::io::Error> {
}

fn print_formatted(stations: &[weather::Station]) {
let s = stations.iter().map(|st| st.to_string()).collect::<Vec<String>>().join(", ");
let s = stations
.iter()
.map(|st| st.to_string())
.collect::<Vec<String>>()
.join(", ");
println!("{{{s}}}");
}

0 comments on commit f133ec3

Please sign in to comment.