mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
Merge pull request #273 from pabigot/pabigot/20220720a
fix: avoid unused variable warning
This commit is contained in:
@ -85,7 +85,7 @@ fn main() {
|
||||
// FILL in the blank
|
||||
let b = __;
|
||||
|
||||
let v = match b {
|
||||
let _v = match b {
|
||||
true => 1,
|
||||
// Diverging functions can also be used in match expression to replace a value of any value
|
||||
false => {
|
||||
|
Reference in New Issue
Block a user