Commit 5c4a072
Mark AsciiString::new() as 'const fn'
Since 'Vec::new()' is already a const function,
there is no difference in generated MIR/ASM whether
'AsciiString::new()' is marked 'const' or not.
I saw issue #56 is waiting to mark this function as 'const',
and so this PR simply marks 'AsciiString::new()' as a const fn.
Thanks for reviewing this PR :)1 parent b3f1333 commit 5c4a072
1 file changed
+1
-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 | 32 | | |
| |||
0 commit comments