summaryrefslogtreecommitdiffstats
path: root/vendor/snapbox/src
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
commita0b8f38ab54ac451646aa00cd5e91b6c76f22a84 (patch)
treefc451898ccaf445814e26b46664d78702178101d /vendor/snapbox/src
parentAdding debian version 1.71.1+dfsg1-2. (diff)
downloadrustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.tar.xz
rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/snapbox/src')
-rw-r--r--vendor/snapbox/src/data.rs2
-rw-r--r--vendor/snapbox/src/report/color.rs10
2 files changed, 6 insertions, 6 deletions
diff --git a/vendor/snapbox/src/data.rs b/vendor/snapbox/src/data.rs
index aa5f9b1ed..ab4432c1e 100644
--- a/vendor/snapbox/src/data.rs
+++ b/vendor/snapbox/src/data.rs
@@ -10,7 +10,7 @@ pub struct Data {
enum DataInner {
Binary(Vec<u8>),
Text(String),
- #[cfg(feature = "structured-data")]
+ #[cfg(feature = "json")]
Json(serde_json::Value),
}
diff --git a/vendor/snapbox/src/report/color.rs b/vendor/snapbox/src/report/color.rs
index 1b74a3c58..38f4f8fc8 100644
--- a/vendor/snapbox/src/report/color.rs
+++ b/vendor/snapbox/src/report/color.rs
@@ -12,12 +12,12 @@ impl Palette {
pub fn color() -> Self {
if cfg!(feature = "color") {
Self {
- info: anstyle::AnsiColor::Green.into(),
- warn: anstyle::AnsiColor::Yellow.into(),
- error: anstyle::AnsiColor::Red.into(),
+ info: anstyle::AnsiColor::Green.on_default(),
+ warn: anstyle::AnsiColor::Yellow.on_default(),
+ error: anstyle::AnsiColor::Red.on_default(),
hint: anstyle::Effects::DIMMED.into(),
- expected: anstyle::AnsiColor::Green | anstyle::Effects::UNDERLINE,
- actual: anstyle::AnsiColor::Red | anstyle::Effects::UNDERLINE,
+ expected: anstyle::AnsiColor::Green.on_default() | anstyle::Effects::UNDERLINE,
+ actual: anstyle::AnsiColor::Red.on_default() | anstyle::Effects::UNDERLINE,
}
} else {
Self::plain()