treba upravim ten priklad z knihy a nepotrebuju lifetime.
fn longest(x: &str, y: &str) -> u8 {
if x.len() > y.len() {
1
} else {
2
}
}
fn main() {
let string1 = String::from("abcd");
let string2 = "xyz";
let result = longest(string1.as_str(), string2);
println!("The longest string is {}", result);
}