Repository navigation
Commit cf79775
committed
Remove the duplicated PnL text in perpetual position details
- position_details built the PnL text and tone by hand, repeating pnl_text; 9d04595 had to apply the same initial-margin fix in both places. It now calls pnl_text, whose tone is GemValueTone::of(pnl) as before.
- security transaction scan tests compared a bool with assert_eq!, which fails workspace clippy (bool_assert_comparison).1 parent f8d68fd commit cf79775
2 files changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
| 793 | + | |
800 | 794 | | |
801 | 795 | | |
802 | 796 | | |
| |||
821 | 815 | | |
822 | 816 | | |
823 | 817 | | |
824 | | - | |
| 818 | + | |
825 | 819 | | |
826 | 820 | | |
827 | 821 | | |
| |||
0 commit comments