fix: avoid unused variable warning
This commit is contained in:
parent
d91ca79253
commit
697a0d754e
|
@ -85,7 +85,7 @@ fn main() {
|
||||||
// FILL in the blank
|
// FILL in the blank
|
||||||
let b = __;
|
let b = __;
|
||||||
|
|
||||||
let v = match b {
|
let _v = match b {
|
||||||
true => 1,
|
true => 1,
|
||||||
// Diverging functions can also be used in match expression to replace a value of any value
|
// Diverging functions can also be used in match expression to replace a value of any value
|
||||||
false => {
|
false => {
|
||||||
|
|
|
@ -108,7 +108,7 @@ fn main() {
|
||||||
// FILL in the blank
|
// FILL in the blank
|
||||||
let b = false;
|
let b = false;
|
||||||
|
|
||||||
let v = match b {
|
let _v = match b {
|
||||||
true => 1,
|
true => 1,
|
||||||
// Diverging functions can also be used in match expression
|
// Diverging functions can also be used in match expression
|
||||||
false => {
|
false => {
|
||||||
|
|
|
@ -77,7 +77,7 @@ fn main() {
|
||||||
// 填空
|
// 填空
|
||||||
let b = __;
|
let b = __;
|
||||||
|
|
||||||
let v = match b {
|
let _v = match b {
|
||||||
true => 1,
|
true => 1,
|
||||||
// 发散函数也可以用于 `match` 表达式,用于替代任何类型的值
|
// 发散函数也可以用于 `match` 表达式,用于替代任何类型的值
|
||||||
false => {
|
false => {
|
||||||
|
|
Loading…
Reference in New Issue