Reformatted with cargo fmt.

This commit is contained in:
Ethan P authored and David Peter committed 2019-05-10 17:52:35 -05:00
1 parent 0ad09df7ab
commit cc8186103b
1 file changed
+2 -1
+2 -1
View File
@@ -367,7 +367,8 @@ impl<'a> Printer for InteractivePrinter<'a> {
match chunk {
// ANSI escape passthrough.
(text, true) => {
let is_ansi_csi = text.chars().skip(1).nth(0).map_or(false, |c|c == '[');
let is_ansi_csi =
text.chars().skip(1).nth(0).map_or(false, |c| c == '[');
if is_ansi_csi && text.chars().last().map_or(false, |c| c == 'm') {
// It's an ANSI SGR sequence.