Merge commit '0f7558148c22e53cd4608773b56cdfa50dcdeac3' into clippyup

This commit is contained in:
Philipp Krones
2023-02-10 14:01:19 +01:00
parent 821199c885
commit e7fe1f9c14
76 changed files with 2207 additions and 575 deletions

View File

@@ -770,10 +770,7 @@ impl<'tcx> FormatSpec<'tcx> {
/// Has no other formatting specifiers than setting the format trait. returns true for `{}`,
/// `{foo}`, `{:?}`, but false for `{foo:5}`, `{3:.5?}`
pub fn is_default_for_trait(&self) -> bool {
self.width.is_implied()
&& self.precision.is_implied()
&& self.align == Alignment::AlignUnknown
&& self.no_flags
self.width.is_implied() && self.precision.is_implied() && self.align == Alignment::AlignUnknown && self.no_flags
}
}