diff options
| author | Nathan Froyd <froydnj@gmail.com> | 2017-04-13 16:24:30 -0400 |
|---|---|---|
| committer | Nathan Froyd <froydnj@gmail.com> | 2017-04-28 15:33:17 -0400 |
| commit | 2499d819d41b87d9b562377479e4a81f74bd49f1 (patch) | |
| tree | 81ab890de6b111b162f280c8cff2157fb96a3cfe /src/test/debuginfo/enum-thinlto.rs | |
| parent | a21f61685d4aa2bd93152eaf53c469b29a3a9bee (diff) | |
| download | rust-2499d819d41b87d9b562377479e4a81f74bd49f1.tar.gz rust-2499d819d41b87d9b562377479e4a81f74bd49f1.zip | |
fmt: use the minimum parts array size
The comments for flt2dec::to_shortest_str says that we only need a slice of length 5 for the parts array. Initializing a 16-part array is just wasted effort and wasted stack space. Other functions in the flt2dec module have similar comments, so we adjust the parts arrays passed to those functions accordingly.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
