diff options
Diffstat (limited to 'crates/ignore/src/types.rs')
-rw-r--r-- | crates/ignore/src/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ignore/src/types.rs b/crates/ignore/src/types.rs index 62275b40..efb9a8d9 100644 --- a/crates/ignore/src/types.rs +++ b/crates/ignore/src/types.rs @@ -427,7 +427,7 @@ impl TypesBuilder { /// If `name` is `all` or otherwise contains any character that is not a /// Unicode letter or number, then an error is returned. pub fn add(&mut self, name: &str, glob: &str) -> Result<(), Error> { - lazy_static! { + lazy_static::lazy_static! { static ref RE: Regex = Regex::new(r"^[\pL\pN]+$").unwrap(); }; if name == "all" || !RE.is_match(name) { |