yangwenmai/learning-rust

Q5: how to fix warning: unused variable?

yangwenmai opened this issue · 0 comments

当我们在什么 let remainder 但是又没有使用它时,编译器会直接给出警告。

warning: unused variable: `remainder`

运动 cargo run,直接给出帮助提示:

   |         ^^^^^^^^^ help: consider prefixing with an underscore: `_remainder`