Commit 6f86c8d
authored
Used constant with mapping instead of write! to display scalar value bytes (#20719)
## Which issue does this PR close?
- Closes #19569.
## Rationale for this change
This was the latest usage as far as I can see so I've changed it. I
think this is not on the hot path so if you want we can close the PR and
issue with it.
## What changes are included in this PR?
Instead of using write! format string write hex with using constant char
mapping
## Are these changes tested?
Runned debug display tests:
```
running 1 test
test scalar::tests::test_binary_display ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 364 filtered out; finished in 0.00s
```
## Are there any user-facing changes?
No1 parent 23b88fb commit 6f86c8d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
4959 | 4960 | | |
4960 | 4961 | | |
4961 | 4962 | | |
| 4963 | + | |
4962 | 4964 | | |
4963 | | - | |
| 4965 | + | |
| 4966 | + | |
4964 | 4967 | | |
4965 | 4968 | | |
4966 | 4969 | | |
| |||
0 commit comments