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/Lazy>/` --- 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`. +/// Codegen converts this into a `Lazy>`. struct Matcher(Vec); /// 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`'s lazy evaluation closure. +/// Used internally by `Lazy>`'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`'s lazy evaluation closure. +/// Used internally by `Lazy>`'s lazy evaluation closure. fn build_matcher_dynamic(segs: &[MatcherSegment]) -> Option { // join segments let mut buf = String::new(); @@ -83,7 +83,7 @@ fn build_matcher_dynamic(segs: &[MatcherSegment]) -> Option { /// A segment of a dynamic builtin matcher. /// -/// Used internally by `Lazy`'s lazy evaluation closure. +/// Used internally by `Lazy>`'s lazy evaluation closure. #[derive(Clone, Debug)] enum MatcherSegment { Text(&'static str),