summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/ansi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/src/ansi.rs')
-rw-r--r--alacritty_terminal/src/ansi.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs
index f4e8fde1..b590bd7d 100644
--- a/alacritty_terminal/src/ansi.rs
+++ b/alacritty_terminal/src/ansi.rs
@@ -1,6 +1,7 @@
//! ANSI Terminal Stream Parsing.
use std::convert::TryFrom;
+use std::fmt::Write;
use std::time::{Duration, Instant};
use std::{iter, str};
@@ -950,7 +951,7 @@ where
for items in params {
buf.push('[');
for item in *items {
- buf.push_str(&format!("{:?},", *item as char));
+ let _ = write!(buf, "{:?}", *item as char);
}
buf.push_str("],");
}