Apply 2024 edition formatting to solutions

This commit is contained in:
mo8it
2025-02-21 13:08:34 +01:00
parent 1eb6c1e469
commit 374c3874af
5 changed files with 9 additions and 19 deletions
+1 -5
View File
@@ -5,11 +5,7 @@
fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
// ^^^^ ^^ ^^ ^^
if x.len() > y.len() {
x
} else {
y
}
if x.len() > y.len() { x } else { y }
}
fn main() {
+1 -5
View File
@@ -1,9 +1,5 @@
fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
if x.len() > y.len() {
x
} else {
y
}
if x.len() > y.len() { x } else { y }
}
fn main() {