In Rust, function parameters always require explicit type annotations. Even better: Rust is an expression-based language. The final line of a function without a semicolon automatically becomes its return value!
Adding a semicolon turns an expression into a statement (returning () unit), so leave off the semicolon on the last line when returning a value.