From 9666eea62b8cf763027d1f01acbb403c1c6097e0 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 31 Mar 2021 13:23:32 -0600 Subject: issuing correction on a previous post of mine, regarding pub(crate) --- src/makefile/pattern.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/makefile/pattern.rs') diff --git a/src/makefile/pattern.rs b/src/makefile/pattern.rs index e4077cd..6648851 100644 --- a/src/makefile/pattern.rs +++ b/src/makefile/pattern.rs @@ -24,7 +24,7 @@ fn compile_pattern(pattern: &str) -> anyhow::Result { Ok(Regex::new(&result)?) } -pub(crate) fn r#match<'a>(pattern: &str, text: &'a str) -> anyhow::Result>> { +pub fn r#match<'a>(pattern: &str, text: &'a str) -> anyhow::Result>> { Ok(compile_pattern(pattern)?.captures(text)) } -- cgit v1.2.3