aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index e6b1b78..5325175 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -89,11 +89,10 @@ where
fn encode_to_file<W: Write>(f: &mut W, s: &str) -> io::Result<()> {
s.chars().try_for_each(|c| {
write!(f, "{}", match c {
- '\\' => "\\\\",
- '\n' => "\\n",
- _ => return write!(f, "{}", c),
- }
- )
+ '\\' => "\\\\",
+ '\n' => "\\n",
+ _ => return write!(f, "{}", c),
+ })
})?;
write!(f, "{}", '\n')
}