Skip to content

Commit 92182d4

Browse files
committed
refactor(shell): Create separaete style definition for transient
1 parent b486362 commit 92182d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cargo/core/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl Shell {
172172
where
173173
T: fmt::Display,
174174
{
175-
self.print(&status, None, &NOTE, true)
175+
self.print(&status, None, &TRANSIENT, true)
176176
}
177177

178178
/// Shortcut to right-align a status message.

src/cargo/util/style.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ pub const NOTE: Style = annotate_snippets::renderer::DEFAULT_NOTE_STYLE;
1111
pub const GOOD: Style = AnsiColor::BrightGreen.on_default().effects(Effects::BOLD);
1212
pub const VALID: Style = AnsiColor::BrightCyan.on_default().effects(Effects::BOLD);
1313
pub const INVALID: Style = annotate_snippets::renderer::DEFAULT_WARNING_STYLE;
14+
pub const TRANSIENT: Style = NOTE;

0 commit comments

Comments
 (0)