Commit 39b64e1
ostree-ext: Fix warning on rust 1.9.2
This started warning with:
warning: value assigned to `no_signature_verification` is never read
--> crates/ostree-ext/src/cli.rs:1265:21
|
1265 | mut no_signature_verification,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
Which is true in this case, we never actually read the pattern-matched
value. Change it to be explicitly unused with '_' and then shadow it
with a `let` binding.
Signed-off-by: John Eckersberg <jeckersb@redhat.com>1 parent 3c861fb commit 39b64e1
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
1265 | | - | |
| 1265 | + | |
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
| |||
1273 | 1273 | | |
1274 | 1274 | | |
1275 | 1275 | | |
1276 | | - | |
| 1276 | + | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
| |||
0 commit comments