File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,21 @@ use directive::{Directive, DirectiveKind};
1515
1616static LINE_PATTERN : LazyLock < Regex > = LazyLock :: new ( || {
1717 RegexBuilder :: new (
18- r# "
18+ r"
1919 ^\s*
2020 //@\s+
2121 (?P<negated>!?)
2222 (?P<directive>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)
2323 (?P<args>.*)$
24- "# ,
24+ " ,
2525 )
2626 . ignore_whitespace ( true )
2727 . build ( )
2828 . unwrap ( )
2929} ) ;
3030
3131static DEPRECATED_LINE_PATTERN : LazyLock < Regex > =
32- LazyLock :: new ( || RegexBuilder :: new ( r# "//\s+@"# ) . build ( ) . unwrap ( ) ) ;
32+ LazyLock :: new ( || RegexBuilder :: new ( r"//\s+@" ) . build ( ) . unwrap ( ) ) ;
3333
3434/// ```
3535/// // Directive on its own line
@@ -39,7 +39,7 @@ static DEPRECATED_LINE_PATTERN: LazyLock<Regex> =
3939/// struct S; //@ ignored-directive
4040/// ```
4141static MIXED_LINE : LazyLock < Regex > =
42- LazyLock :: new ( || RegexBuilder :: new ( r# ".*\S.*//@"# ) . build ( ) . unwrap ( ) ) ;
42+ LazyLock :: new ( || RegexBuilder :: new ( r".*\S.*//@" ) . build ( ) . unwrap ( ) ) ;
4343
4444struct ErrorReporter < ' a > {
4545 /// See [`Config::template`].
You can’t perform that action at this time.
0 commit comments