diff options
| author | Jane Lusby <jlusby@yaah.dev> | 2022-01-07 10:10:30 -0800 |
|---|---|---|
| committer | Jane Lusby <jlusby@yaah.dev> | 2022-01-07 13:59:27 -0800 |
| commit | 72cb1bd06dfdcec7c707e46fff44b3351a6c5ea9 (patch) | |
| tree | b3747553656a8dabb03ae3eb9f5d38e83196499b /library/std/src/error.rs | |
| parent | 5b3902fc6550f7646c4612c7ff8f4d8712f13334 (diff) | |
| download | rust-72cb1bd06dfdcec7c707e46fff44b3351a6c5ea9.tar.gz rust-72cb1bd06dfdcec7c707e46fff44b3351a6c5ea9.zip | |
silence tidy errors
Diffstat (limited to 'library/std/src/error.rs')
| -rw-r--r-- | library/std/src/error.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/library/std/src/error.rs b/library/std/src/error.rs index 5514876c5d3..613ec43a906 100644 --- a/library/std/src/error.rs +++ b/library/std/src/error.rs @@ -1284,9 +1284,7 @@ where for (ind, error) in cause.chain().enumerate() { writeln!(f)?; - let mut indented = Indented { - inner: f, - }; + let mut indented = Indented { inner: f }; if multiple { write!(indented, "{: >4}: {}", ind, error)?; } else { @@ -1310,8 +1308,7 @@ where } } -impl Report<Box<dyn Error>> -{ +impl Report<Box<dyn Error>> { fn backtrace(&self) -> Option<&Backtrace> { // have to grab the backtrace on the first error directly since that error may not be // 'static @@ -1353,9 +1350,7 @@ impl Report<Box<dyn Error>> for (ind, error) in cause.chain().enumerate() { writeln!(f)?; - let mut indented = Indented { - inner: f, - }; + let mut indented = Indented { inner: f }; if multiple { write!(indented, "{: >4}: {}", ind, error)?; } else { @@ -1411,8 +1406,7 @@ where } #[unstable(feature = "error_reporter", issue = "90172")] -impl fmt::Display for Report<Box<dyn Error>> -{ +impl fmt::Display for Report<Box<dyn Error>> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { if self.pretty { self.fmt_multiline(f) } else { self.fmt_singleline(f) } } |
