diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/anstyle/src | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/anstyle/src')
-rw-r--r-- | vendor/anstyle/src/color.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vendor/anstyle/src/color.rs b/vendor/anstyle/src/color.rs index 40fa7dfa9..cbf0b47a2 100644 --- a/vendor/anstyle/src/color.rs +++ b/vendor/anstyle/src/color.rs @@ -7,7 +7,7 @@ pub enum Color { } impl Color { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -15,7 +15,7 @@ impl Color { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self)) @@ -175,7 +175,7 @@ pub enum AnsiColor { } impl AnsiColor { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -183,7 +183,7 @@ impl AnsiColor { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self.into())) @@ -330,7 +330,7 @@ impl AnsiColor { pub struct Ansi256Color(pub u8); impl Ansi256Color { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -338,7 +338,7 @@ impl Ansi256Color { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self.into())) @@ -450,7 +450,7 @@ impl From<AnsiColor> for Ansi256Color { pub struct RgbColor(pub u8, pub u8, pub u8); impl RgbColor { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -458,7 +458,7 @@ impl RgbColor { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self.into())) |