From dfb9c997d35c924b2dd351d08de150306e4c426b Mon Sep 17 00:00:00 2001 From: blinxen Date: Sun, 15 Oct 2023 20:15:20 +0200 Subject: [PATCH 1/2] Remove unused dependency --- matcher/Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/matcher/Cargo.toml b/matcher/Cargo.toml index dbbdbfd..a7e621e 100644 --- a/matcher/Cargo.toml +++ b/matcher/Cargo.toml @@ -10,7 +10,6 @@ readme = "../README.md" [dependencies] memchr = "2.5.0" -cov-mark = { version = "1.1.0", default-features = false } unicode-segmentation = { version = "1.10", optional = true } [features] From 9454f2532531d9e18f54b1630a5431d574e920e2 Mon Sep 17 00:00:00 2001 From: blinxen Date: Sun, 15 Oct 2023 20:46:27 +0200 Subject: [PATCH 2/2] Fix linter errors --- matcher/src/pattern.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/matcher/src/pattern.rs b/matcher/src/pattern.rs index 37f747e..5aa16cd 100644 --- a/matcher/src/pattern.rs +++ b/matcher/src/pattern.rs @@ -62,7 +62,7 @@ pub enum AtomKind { Exact, } -/// A single pattern component that is matched with a single [`Matcher`](crate::Matcher) function +/// A single pattern component that is matched with a single [`Matcher`] function #[derive(Debug, PartialEq, Eq, Clone)] pub struct Atom { /// Whether this pattern atom is a negative match. @@ -245,7 +245,7 @@ impl Atom { } /// Matches this pattern against `haystack` (using the allocation and configuration - /// from `matcher`) and calculates a ranking score. See the [`Matcher`](crate::Matcher). + /// from `matcher`) and calculates a ranking score. See the [`Matcher`]. /// Documentation for more details. /// /// *Note:* The `ignore_case` setting is overwritten to match the casing of @@ -271,7 +271,7 @@ impl Atom { /// Matches this pattern against `haystack` (using the allocation and /// configuration from `matcher`), calculates a ranking score and the match - /// indices. See the [`Matcher`](crate::Matcher). Documentation for more + /// indices. See the [`Matcher`]. Documentation for more /// details. /// /// *Note:* The `ignore_case` setting is overwritten to match the casing of @@ -423,7 +423,7 @@ impl Pattern { } /// Matches this pattern against `haystack` (using the allocation and configuration - /// from `matcher`) and calculates a ranking score. See the [`Matcher`](crate::Matcher). + /// from `matcher`) and calculates a ranking score. See the [`Matcher`]. /// Documentation for more details. /// /// *Note:* The `ignore_case` setting is overwritten to match the casing of @@ -441,7 +441,7 @@ impl Pattern { /// Matches this pattern against `haystack` (using the allocation and /// configuration from `matcher`), calculates a ranking score and the match - /// indices. See the [`Matcher`](crate::Matcher). Documentation for more + /// indices. See the [`Matcher`]. Documentation for more /// details. /// /// *Note:* The `ignore_case` setting is overwritten to match the casing of