|
1 | 1 | use { |
2 | 2 | self::{ |
3 | | - arguments::Arguments, display_path::DisplayPath, display_secret::DisplaySecret, error::Error, |
4 | | - lint::Lint, lint_group::LintGroup, list::List, manifest::Manifest, metadata::Metadata, |
5 | | - options::Options, owo_colorize_ext::OwoColorizeExt, private_key::PrivateKey, |
6 | | - public_key::PublicKey, relative_path::RelativePath, signature::Signature, |
7 | | - signature_error::SignatureError, style::Style, subcommand::Subcommand, template::Template, |
8 | | - utf8_path_ext::Utf8PathExt, |
| 3 | + arguments::Arguments, display_path::DisplayPath, display_secret::DisplaySecret, lint::Lint, |
| 4 | + lint_group::LintGroup, list::List, metadata::Metadata, options::Options, |
| 5 | + owo_colorize_ext::OwoColorizeExt, private_key::PrivateKey, signature_error::SignatureError, |
| 6 | + style::Style, subcommand::Subcommand, template::Template, utf8_path_ext::Utf8PathExt, |
9 | 7 | }, |
10 | 8 | blake3::Hasher, |
11 | 9 | camino::{Utf8Component, Utf8Path, Utf8PathBuf}, |
|
15 | 13 | owo_colors::Styled, |
16 | 14 | serde::{Deserialize, Deserializer, Serialize, Serializer}, |
17 | 15 | serde_with::{DeserializeFromStr, SerializeDisplay}, |
18 | | - snafu::{ensure, ErrorCompat, OptionExt, ResultExt, Snafu}, |
| 16 | + snafu::{ErrorCompat, OptionExt, ResultExt, Snafu, ensure}, |
19 | 17 | std::{ |
20 | 18 | array::TryFromSliceError, |
21 | 19 | backtrace::{Backtrace, BacktraceStatus}, |
|
32 | 30 | walkdir::WalkDir, |
33 | 31 | }; |
34 | 32 |
|
35 | | -pub use self::{entry::Entry, hash::Hash}; |
| 33 | +pub use self::{ |
| 34 | + entry::Entry, error::Error, hash::Hash, manifest::Manifest, public_key::PublicKey, |
| 35 | + relative_path::RelativePath, signature::Signature, |
| 36 | +}; |
36 | 37 |
|
37 | 38 | #[cfg(test)] |
38 | 39 | use assert_fs::TempDir; |
@@ -91,12 +92,12 @@ pub fn run() { |
91 | 92 | eprintln!(" {}─ {err}", if i < causes - 1 { '├' } else { '└' }); |
92 | 93 | } |
93 | 94 |
|
94 | | - if let Some(backtrace) = err.backtrace() { |
95 | | - if backtrace.status() == BacktraceStatus::Captured { |
96 | | - eprintln!(); |
97 | | - eprintln!("backtrace:"); |
98 | | - eprintln!("{backtrace}"); |
99 | | - } |
| 95 | + if let Some(backtrace) = err.backtrace() |
| 96 | + && backtrace.status() == BacktraceStatus::Captured |
| 97 | + { |
| 98 | + eprintln!(); |
| 99 | + eprintln!("backtrace:"); |
| 100 | + eprintln!("{backtrace}"); |
100 | 101 | } |
101 | 102 |
|
102 | 103 | process::exit(1); |
|
0 commit comments