join_segments -> build_glob_string

- this is a more descriptive name
This commit is contained in:
cyqsimon committed 2023-12-11 10:20:11 +08:00
1 parent 827b3eca2f
commit 64840fbbae
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ impl Matcher {
// parser logic ensures that this case can only happen when there are dynamic segments
_ => {
let segments_codegen = self.0.iter().map(MatcherSegment::codegen).join(", ");
let closure = format!("|| join_segments(&[{segments_codegen}])");
let closure = format!("|| build_glob_string(&[{segments_codegen}])");
format!("BuiltinMatcher::Dynamic(Lazy::new({closure}))")
}
}