Attention is currently required from: Evan Benn.
2 comments:
File util/flashrom_tester/flashrom/src/cmd.rs:
Patch Set #4, Line 82: // an operation must provide a file or a region.file or both.
Does this vary with what operation is being performed? It might be more obvious (regarding correct use of fields) to make each `Operation` have fields for the relevant options:
```
enum LayoutSource {
Fmap,
LayoutFile(Path),
}
enum Region {
EntireChip,
Named(&str, LayoutSource),
}
enum Operation {
Read(Region, Path),
Write(Region, Path),
...
Erase(Region),
}
```
Patch Set #4, Line 148: #[allow(clippy::needless_update)] // clippy doesnt like Default when all fields are filled
Seems okay to omit the `default` then, unless you anticipate adding more fields that would require adding it back in.
To view, visit change 71973. To unsubscribe, or for help writing mail filters, visit settings.