summaryrefslogtreecommitdiff
path: root/src/exec/context.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-16 18:52:26 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-16 19:15:03 +0200
commit9462fb17b390c57846b9215217ca7c32b649f0a5 (patch)
treebd6f96fea83c5e757c8f0eefefe5c0347784f00b /src/exec/context.rs
parentcb0aab3cfab2122a87d1d221290f7178b4291758 (diff)
Convert single-field structs to tuple structs
Diffstat (limited to 'src/exec/context.rs')
-rw-r--r--src/exec/context.rs4
1 files changed, 2 insertions, 2 deletions
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.