Skip to content

Commit 7ecbf2f

Browse files
committed
Use a cleaner concatenation syntax
1 parent c1c7bb6 commit 7ecbf2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Input {
131131

132132
let prefix = self.prefix();
133133

134-
[prefix, title_with_replacements].join("")
134+
prefix + &title_with_replacements
135135
}
136136

137137
/// Prepare the file name for the generated file.
@@ -140,7 +140,7 @@ impl Input {
140140
pub fn file_name(&self) -> String {
141141
let suffix = ".adoc";
142142

143-
[&self.id(), suffix].join("")
143+
self.id() + suffix
144144
}
145145

146146
fn prefix(&self) -> String {

0 commit comments

Comments
 (0)