mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-13 00:20:08 +01:00
chore(clippy): fix warnings from nightly
This commit is contained in:
parent
ea8b25c2a7
commit
f08cf307c6
5 changed files with 9 additions and 23 deletions
|
|
@ -13,7 +13,7 @@ impl tcolor::Color for Color {
|
|||
#[inline]
|
||||
fn write_fg(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match self.0 {
|
||||
Some(value) => write!(f, "\x1B[38;5;{}m", value),
|
||||
Some(value) => write!(f, "\x1B[38;5;{value}m"),
|
||||
None => write!(f, "\x1B[39m"),
|
||||
}
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@ impl tcolor::Color for Color {
|
|||
#[inline]
|
||||
fn write_bg(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match self.0 {
|
||||
Some(value) => write!(f, "\x1B[48;5;{}m", value),
|
||||
Some(value) => write!(f, "\x1B[48;5;{value}m"),
|
||||
None => write!(f, "\x1B[49m"),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue