diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-07 17:59:21 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-07 17:59:21 -0500 |
| commit | 1bf89807c428ebb2e4aaf2d0e0f0772e1878bbff (patch) | |
| tree | d2b9e3cb9ab9cc4c80b6240d8fa150d38561498f /rust/examples | |
| parent | 01ef88f28a999ab16508483bd5a442f26876a81e (diff) | |
Fix misc Rust example unused var
Diffstat (limited to 'rust/examples')
| -rw-r--r-- | rust/examples/disassemble.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/examples/disassemble.rs b/rust/examples/disassemble.rs index 3f422181..2065c787 100644 --- a/rust/examples/disassemble.rs +++ b/rust/examples/disassemble.rs @@ -14,7 +14,7 @@ fn disassemble(func: &Function) { for basic_block in &func.basic_blocks() { for instr_addr in basic_block.iter() { // NOTE: If you want the annotations as well you can call text_renderer.disassembly_text - if let Some((text, len)) = text_renderer.instruction_text(instr_addr) { + if let Some((text, _len)) = text_renderer.instruction_text(instr_addr) { // TODO: This only ever appears to return a single string? let text_string: Vec<_> = text.iter().map(|t| t.to_string()).collect(); println!("{}", text_string.join("")); |
