Commit 3af0bca
Fix clippy unnecessary_unwrap warnings in bytecode.rs (#95)
Refactor the line number handling to use 'if let Some(number) = line.number'
pattern instead of checking 'is_none()' and then calling 'unwrap()'. This is
more idiomatic Rust and eliminates the clippy::unnecessary_unwrap warnings.
Co-authored-by: openhands <openhands@all-hands.dev>1 parent 633fd44 commit 3af0bca
2 files changed
Lines changed: 128 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 600 | + | |
607 | 601 | | |
608 | 602 | | |
609 | 603 | | |
| |||
612 | 606 | | |
613 | 607 | | |
614 | 608 | | |
615 | | - | |
| 609 | + | |
616 | 610 | | |
617 | 611 | | |
618 | 612 | | |
| |||
621 | 615 | | |
622 | 616 | | |
623 | 617 | | |
624 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| |||
0 commit comments