Loading...
Loading...
Compare original and translation side by side
fn main() {
println!("Hello, World!");
let mut x = 5; // mutable
x = 6;
let y = 10; // immutable by default
}fn main() {
println!("Hello, World!");
let mut x = 5; // 可变的
x = 6;
let y = 10; // 默认不可变
}Result<T, E>Option<T>cargo clippymatchunsafeunwrap()Result<T, E>Option<T>cargo clippymatchunsafeunwrap()