diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-03-03 20:18:56 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-03-03 20:18:56 +0000 |
| commit | 0c4eaa5c985f69d3b6255a56799ee30d29e08d54 (patch) | |
| tree | bcc79c6df84dc10e39a04be7df046a4c8e9d632d /src | |
| parent | aae7a3c4c2fbd0db49fac5618590df541943f140 (diff) | |
| download | rust-0c4eaa5c985f69d3b6255a56799ee30d29e08d54.tar.gz rust-0c4eaa5c985f69d3b6255a56799ee30d29e08d54.zip | |
Use default field values for `ErrorOutputType`
Remove manual `Default` impl from `config::ErrorOutputType`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/core.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/doctest.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index 757a2a6e0dd..7221e2ce6b1 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -153,7 +153,7 @@ pub(crate) fn new_dcx( false, ); let emitter: Box<DynEmitter> = match error_format { - ErrorOutputType::HumanReadable(kind, color_config) => { + ErrorOutputType::HumanReadable { kind, color_config } => { let short = kind.short(); Box::new( HumanEmitter::new(stderr_destination(color_config), fallback_bundle) diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs index 4a379b4235f..3d6e0330fff 100644 --- a/src/librustdoc/doctest.rs +++ b/src/librustdoc/doctest.rs @@ -580,7 +580,7 @@ fn run_test( path_for_rustdoc.to_str().expect("target path must be valid unicode") } }); - if let ErrorOutputType::HumanReadable(kind, color_config) = rustdoc_options.error_format { + if let ErrorOutputType::HumanReadable { kind, color_config } = rustdoc_options.error_format { let short = kind.short(); let unicode = kind == HumanReadableErrorType::Unicode; |
