Skip to content

Commit 99da6be

Browse files
committed
remove 'static specifier on consts
1 parent fe54f39 commit 99da6be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,10 @@ enum MatchResult {
516516
EntirePatternDoesntMatch,
517517
}
518518

519-
const ERROR_WILDCARDS: &'static str = "wildcards are either regular `*` or recursive `**`";
520-
const ERROR_RECURSIVE_WILDCARDS: &'static str = "recursive wildcards must form a single path \
519+
const ERROR_WILDCARDS: &str = "wildcards are either regular `*` or recursive `**`";
520+
const ERROR_RECURSIVE_WILDCARDS: &str = "recursive wildcards must form a single path \
521521
component";
522-
const ERROR_INVALID_RANGE: &'static str = "invalid range pattern";
522+
const ERROR_INVALID_RANGE: &str = "invalid range pattern";
523523

524524
impl Pattern {
525525
/// This function compiles Unix shell style patterns.

0 commit comments

Comments
 (0)