diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-11-21 08:15:29 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-11-21 08:43:56 +0200 |
commit | 1580169cae459b8d555e103c72a764929930ba30 (patch) | |
tree | 0a5c11fdddafb948fbbac48bb05b87c7e02ba207 /src/metadata.rs | |
parent | 5e8fc5b2c0b1e42cfda4c28ea839f422e6c170d5 (diff) | |
download | subplot-1580169cae459b8d555e103c72a764929930ba30.tar.gz |
chore(src/visitor/structure.rs): push a char instead of push_str
Doesn't change the result, but it's cleaner to push a character
instead of push_str a single-character string.
Diffstat (limited to 'src/metadata.rs')
-rw-r--r-- | src/metadata.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/metadata.rs b/src/metadata.rs index 05f686b..85c1576 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -235,9 +235,9 @@ fn join_into_buffer(vec: &[Inline], buf: &mut String) { pandoc_ast::Inline::Superscript(v) => join_into_buffer(v, buf), pandoc_ast::Inline::Subscript(v) => join_into_buffer(v, buf), pandoc_ast::Inline::SmallCaps(v) => join_into_buffer(v, buf), - pandoc_ast::Inline::Space => buf.push_str(" "), - pandoc_ast::Inline::SoftBreak => buf.push_str(" "), - pandoc_ast::Inline::LineBreak => buf.push_str(" "), + pandoc_ast::Inline::Space => buf.push(' '), + pandoc_ast::Inline::SoftBreak => buf.push(' '), + pandoc_ast::Inline::LineBreak => buf.push(' '), _ => panic!("unknown pandoc_ast::Inline component {:?}", item), } } |