From 4ad30025431127b7f7469e4dcede2f1deac7d932 Mon Sep 17 00:00:00 2001
From: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
Date: Sun, 5 Nov 2023 01:49:01 +0800
Subject: [PATCH] `s/Lazy<GlobMatcher>/Lazy<Option<GlobMatcher>>/`

---
 build/syntax_mapping.rs       | 2 +-
 src/syntax_mapping/builtin.rs | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/build/syntax_mapping.rs b/build/syntax_mapping.rs
index 78a7805c..8d83df50 100644
--- a/build/syntax_mapping.rs
+++ b/build/syntax_mapping.rs
@@ -41,7 +41,7 @@ impl MappingTarget {
 #[derive(Clone, Debug, PartialEq, Eq, Hash, DeserializeFromStr)]
 /// A single matcher.
 ///
-/// Codegen converts this into a `Lazy<GlobMatcher>`.
+/// Codegen converts this into a `Lazy<Option<GlobMatcher>>`.
 struct Matcher(Vec<MatcherSegment>);
 /// Parse a matcher.
 ///
diff --git a/src/syntax_mapping/builtin.rs b/src/syntax_mapping/builtin.rs
index 7efff8bc..1822be57 100644
--- a/src/syntax_mapping/builtin.rs
+++ b/src/syntax_mapping/builtin.rs
@@ -52,7 +52,7 @@ include!(concat!(
 ///
 /// A failure to compile is a fatal error.
 ///
-/// Used internally by `Lazy<GlobMatcher>`'s lazy evaluation closure.
+/// Used internally by `Lazy<Option<GlobMatcher>>`'s lazy evaluation closure.
 fn build_matcher_fixed(from: &str) -> GlobMatcher {
     make_glob_matcher(from).expect("A builtin fixed glob matcher failed to compile")
 }
@@ -63,7 +63,7 @@ fn build_matcher_fixed(from: &str) -> GlobMatcher {
 /// Returns `None` if any replacement fails, or if the joined glob string fails
 /// to compile.
 ///
-/// Used internally by `Lazy<GlobMatcher>`'s lazy evaluation closure.
+/// Used internally by `Lazy<Option<GlobMatcher>>`'s lazy evaluation closure.
 fn build_matcher_dynamic(segs: &[MatcherSegment]) -> Option<GlobMatcher> {
     // join segments
     let mut buf = String::new();
@@ -83,7 +83,7 @@ fn build_matcher_dynamic(segs: &[MatcherSegment]) -> Option<GlobMatcher> {
 
 /// A segment of a dynamic builtin matcher.
 ///
-/// Used internally by `Lazy<GlobMatcher>`'s lazy evaluation closure.
+/// Used internally by `Lazy<Option<GlobMatcher>>`'s lazy evaluation closure.
 #[derive(Clone, Debug)]
 enum MatcherSegment {
     Text(&'static str),