mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-03 13:22:33 +00:00
WIP - fix Rust API check
This commit is contained in:
parent
675950481b
commit
38ca5049f1
@ -95,7 +95,7 @@ def _get_all_qstr_code_types(file: Path) -> dict[str, dict[str, str]]:
|
||||
# There could be a default value
|
||||
default = None
|
||||
if "unwrap_or_else" in one_line:
|
||||
default_match = re.search(r"unwrap_or_else\(\|_\|\s+(.*?)\)", one_line)
|
||||
default_match = re.search(r"unwrap_or_else\(\|_?\|\s+(.*?)\)", one_line)
|
||||
if default_match:
|
||||
default = default_match.group(1)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user