Attention is currently required from: Evan Benn, Hsuan-ting Chen.
1 comment:
File util/flashrom_tester/flashrom/src/flashromlib.rs:
fn set_default_flags(&self) -> () {
self.flashrom
.borrow_mut()
.flag_set(FlashromFlag::FlashromFlagForce, false);
self.flashrom
.borrow_mut()
.flag_set(FlashromFlag::FlashromFlagForceBoardmismatch, false);
self.flashrom
.borrow_mut()
.flag_set(FlashromFlag::FlashromFlagVerifyAfterWrite, true);
self.flashrom
.borrow_mut()
.flag_set(FlashromFlag::FlashromFlagVerifyWholeChip, true);
}
You probably mean to be using the `Default` trait for the `FlashromFlag` type? Since `enum`'s are uni-dimensional values you will want a phantom struct type for the Flag's in use that is the union of multiple enum values and implement Default for that.
https://doc.rust-lang.org/std/default/trait.Default.html
To view, visit change 79304. To unsubscribe, or for help writing mail filters, visit settings.