diff options
Diffstat (limited to 'rust/src/architecture.rs')
| -rw-r--r-- | rust/src/architecture.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index edc16209..9b5af6ee 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -1472,7 +1472,7 @@ impl Architecture for CoreArchitecture { if res { Ok(result.get_data().to_vec()) } else { - Err(error.unwrap_or("Assemble failed".into())) + Err(error.unwrap_or_else(|| "Assemble failed".into())) } } |
