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

+3 -3
View File
@@ -42,11 +42,11 @@ impl BuiltinMatcher {
}
}
/// Join a list of matcher segments, replacing all environment variables.
/// Returns `None` if any replacement fails.
/// Join a list of matcher segments to create a glob string, replacing all
/// environment variables. Returns `None` if any replacement fails.
///
/// Used internally by `BuiltinMatcher::Dynamic`'s lazy evaluation closure.
fn join_segments(segs: &[MatcherSegment]) -> Option<String> {
fn build_glob_string(segs: &[MatcherSegment]) -> Option<String> {
let mut buf = String::new();
for seg in segs {
match seg {