Commit 7a3d445
committed
Resolve dead code warnings in agenda-generator
warning: unused variable: `empty`
--> src/generator.rs:527:17
|
527 | let mut empty = true;
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty`
|
= note: `#[warn(unused_variables)]` on by default
warning: variable does not need to be mutable
--> src/generator.rs:527:13
|
527 | let mut empty = true;
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
warning: multiple fields are never read
--> src/generator.rs:594:5
|
593 | struct Fcp<'a> {
| --- fields in this struct
594 | title: &'a str,
| ^^^^^
595 | repo: &'a str,
| ^^^^
596 | number: &'a str,
| ^^^^^^
597 | disposition: &'a str,
| ^^^^^^^^^^^
598 | url: &'a str,
| ^^^
599 | reviewers: Vec<&'a str>,
| ^^^^^^^^^
600 | concerns: bool,
| ^^^^^^^^
|
= note: `Fcp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
warning: field `number` is never read
--> src/generator.rs:605:5
|
604 | struct Issue {
| ----- field in this struct
605 | number: u32,
| ^^^^^^
|
= note: `Issue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis1 parent 636682f commit 7a3d445
1 file changed
+1
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | 527 | | |
529 | 528 | | |
530 | 529 | | |
| |||
589 | 588 | | |
590 | 589 | | |
591 | 590 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | 591 | | |
604 | 592 | | |
| 593 | + | |
605 | 594 | | |
606 | 595 | | |
607 | 596 | | |
| |||
0 commit comments