mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-20 02:26:17 +02:00
style: Remove unused variable
This commit is contained in:
1 parent
9f41ead727
commit
5c83dec07b
3 files changed
+2
-6
No files matched your search
@@ -8,7 +8,6 @@ use typos_cli::report::{Context, Message, Report, Typo};
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub struct Palette {
|
||||
error: yansi::Style,
|
||||
warn: yansi::Style,
|
||||
info: yansi::Style,
|
||||
strong: yansi::Style,
|
||||
}
|
||||
@@ -17,7 +16,6 @@ impl Palette {
|
||||
pub fn colored() -> Self {
|
||||
Self {
|
||||
error: yansi::Style::new(yansi::Color::Red),
|
||||
warn: yansi::Style::new(yansi::Color::Yellow),
|
||||
info: yansi::Style::new(yansi::Color::Blue),
|
||||
strong: yansi::Style::default().bold(),
|
||||
}
|
||||
@@ -26,7 +24,6 @@ impl Palette {
|
||||
pub fn plain() -> Self {
|
||||
Self {
|
||||
error: yansi::Style::default(),
|
||||
warn: yansi::Style::default(),
|
||||
info: yansi::Style::default(),
|
||||
strong: yansi::Style::default(),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user