Simplify Display of Whitespace::Newline

This commit is contained in:
ConnorSkees 2020-01-05 19:21:21 -05:00
parent 31fd8f8127
commit 85ea52030b

View File

@ -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"),
}
}