tracks/rust/exercises/series/example.rs in trackler-2.2.1.179 vs tracks/rust/exercises/series/example.rs in trackler-2.2.1.180
- old
+ new
@@ -1,13 +1,11 @@
pub fn series(digits: &str, len: usize) -> Vec<String> {
match len {
0 => vec!["".to_string(); digits.len() + 1],
- _ => {
- digits
- .chars()
- .collect::<Vec<char>>()
- .windows(len)
- .map(|window| window.into_iter().collect::<String>())
- .collect::<Vec<String>>()
- }
+ _ => digits
+ .chars()
+ .collect::<Vec<char>>()
+ .windows(len)
+ .map(|window| window.into_iter().collect::<String>())
+ .collect::<Vec<String>>(),
}
}