From 9462fb17b390c57846b9215217ca7c32b649f0a5 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 16 Aug 2021 18:52:26 +0200 Subject: Convert single-field structs to tuple structs --- src/exec/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/exec/context.rs') diff --git a/src/exec/context.rs b/src/exec/context.rs index 2d419a56..9b235c29 100644 --- a/src/exec/context.rs +++ b/src/exec/context.rs @@ -75,7 +75,7 @@ impl ExecContext { /// Push a word space into the active paragraph. pub fn push_word_space(&mut self) { - self.stack.par.push_soft(self.make_text_node(" ")); + self.stack.par.push_soft(self.make_text_node(' ')); } /// Push any node into the active paragraph. @@ -107,7 +107,7 @@ impl ExecContext { /// Apply a forced line break. pub fn linebreak(&mut self) { - self.stack.par.push_hard(self.make_text_node("\n")); + self.stack.par.push_hard(self.make_text_node('\n')); } /// Apply a forced paragraph break. -- cgit v1.2.3