mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
0d105c0e77
`fmt::Formatter::pad`: don't call chars().count() more than one time First commit merges two branches of match to call chars().count() only once: that should be faster if this method hits place of 3rd (previous) branch, plus quarter shorter. Second commit fixes some clippy lints while i'm here (should it be separate PR?).