diff options
| author | bors <bors@rust-lang.org> | 2025-01-23 09:30:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-01-23 09:30:49 +0000 |
| commit | fc0094f8d4eb91637ff540be7d9d87bfcdd2a208 (patch) | |
| tree | 1bc847e6186ae39847ef942258ac891738359b55 /src/tools/publish_toolstate.py | |
| parent | cf577f34c47937ccb9983186eca5f8719da585f4 (diff) | |
| parent | 48b5481943263870b886669359458434730634c9 (diff) | |
| download | rust-fc0094f8d4eb91637ff540be7d9d87bfcdd2a208.tar.gz rust-fc0094f8d4eb91637ff540be7d9d87bfcdd2a208.zip | |
Auto merge of #135494 - yotamofek:rustdoc-fmt-from_fn, r=fmease
Refactor `fmt::Display` impls in rustdoc This PR does a couple of things, with the intention of cleaning up and streamlining some of the `fmt::Display` impls in rustdoc: 1. Use the unstable [`fmt::from_fn`](https://github.com/rust-lang/rust/issues/117729) instead of open-coding it. 2. ~~Replace bespoke implementations of `Itertools::format` with the method itself.~~ 4. Some more minor cleanups - DRY, remove unnecessary calls to `Symbol::as_str()`, replace some `format!()` calls with lazier options The changes are mostly cosmetic but some of them might have a slight positive effect on performance.
Diffstat (limited to 'src/tools/publish_toolstate.py')
0 files changed, 0 insertions, 0 deletions
