cargo fmt

This commit is contained in:
2026-05-26 14:42:05 +04:00
parent 76cb232b1e
commit 47ed183cfe
9 changed files with 23 additions and 22 deletions

View File

@@ -41,7 +41,11 @@ fn main() {
// Hint: .to_uppercase() is a method on `str` which returns a String
let words = vec!["autobot", "beach", "car", "decepticon", "energon", "frothy"];
let transformed = words.into_iter().filter(|w| !w.contains("h")).map(|w| w.to_uppercase()).collect::<Vec<String>>();
let transformed = words
.into_iter()
.filter(|w| !w.contains("h"))
.map(|w| w.to_uppercase())
.collect::<Vec<String>>();
println!("Transformed: {:?}", transformed);
// Challenge: