aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-06-05 11:12:15 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-06 14:32:54 +0200
commitbc2a48d647752e4f99247184f5dfe00e67a2de8f (patch)
treec4f1252b1ff23ccde65e385e4827ccc56104f39a /python
parent9c00ef6248bd6545f262f18f31b15fc681e88972 (diff)
downloadqemu-bc2a48d647752e4f99247184f5dfe00e67a2de8f.zip
qemu-bc2a48d647752e4f99247184f5dfe00e67a2de8f.tar.gz
qemu-bc2a48d647752e4f99247184f5dfe00e67a2de8f.tar.bz2
rust: make TryFrom macro more resilient
If the enum includes values such as "Ok", "Err", or "Error", the TryInto macro can cause errors. Be careful and qualify identifiers with the full path, or in the case of TryFrom<>::Error do not use the associated type at all. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions