diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-05-11 20:22:36 +0200 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-05-11 16:54:19 -0700 |
commit | e34dccdabf210612666cbb9d22d7afff23487eaf (patch) | |
tree | 01cfc895cf42fc3f31427cc4543ab62265af3eb8 /src/util.rs | |
parent | 57281363503ddd1ebb373ed5de2b84c79d5aa3aa (diff) | |
download | alacritty-e34dccdabf210612666cbb9d22d7afff23487eaf.tar.gz alacritty-e34dccdabf210612666cbb9d22d7afff23487eaf.zip |
Fix clippy lints
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs index 7227f1a0..f51a41f8 100644 --- a/src/util.rs +++ b/src/util.rs @@ -57,13 +57,13 @@ pub mod fmt { impl<T: fmt::Display> fmt::Display for $s<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "\x1b[{}m{}\x1b[0m", $color, self.0) + write!(f, concat!("\x1b[", $color, "m{}\x1b[0m"), self.0) } } impl<T: fmt::Debug> fmt::Debug for $s<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "\x1b[{}m{:?}\x1b[0m", $color, self.0) + write!(f, concat!("\x1b[", $color, "m{:?}\x1b[0m"), self.0) } } )* |