1
0
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:
grdddj 2023-05-29 14:40:00 +02:00
parent 675950481b
commit 38ca5049f1

View File

@ -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: