1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-23 15:08:19 +00:00

WIP - assume False as a default bool value, not None

This commit is contained in:
grdddj 2022-03-21 11:04:37 +01:00
parent fd2d8ada3d
commit 6e929e4920

View File

@ -167,7 +167,8 @@ impl Field<bool> {
if let Some(result) = self.get() {
Ok(result.into())
} else {
Ok(NONE)
// If nothing there, assume false
Ok(false.into())
}
}