From 85ea52030bb8a8a93bd88c430c9e928e60b541d9 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 5 Jan 2020 19:21:21 -0500 Subject: [PATCH] Simplify Display of Whitespace::Newline --- src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.rs b/src/common.rs index cda2436..3e49a1b 100644 --- a/src/common.rs +++ b/src/common.rs @@ -214,7 +214,7 @@ impl Display for Whitespace { match self { Whitespace::Space => write!(f, " "), Whitespace::Tab => write!(f, "\t"), - Whitespace::Newline => write!(f, "\n"), + Whitespace::Newline => writeln!(f), Whitespace::CarriageReturn => write!(f, "\r"), } }