We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e91dd commit eca5233Copy full SHA for eca5233
src/replace_source.rs
@@ -175,6 +175,9 @@ impl<T: Source + Hash + PartialEq + Eq + 'static> Source for ReplaceSource<T> {
175
// mut_string_push_str is faster that vec join
176
// concatenate strings benchmark, see https://github.com/hoodie/concatenation_benchmarks-rs
177
let replacements = self.replacements.lock().unwrap();
178
+ if replacements.is_empty() {
179
+ return inner_source_code;
180
+ }
181
let max_len = replacements
182
.iter()
183
.map(|replacement| replacement.content.len())
0 commit comments