@@ -83,7 +83,7 @@ impl LineProtoTerm<'_> {
8383 }
8484
8585 fn escape_any ( s : & str , re : & Regex ) -> String {
86- re. replace_all ( s, r# "\$0"# ) . to_string ( )
86+ re. replace_all ( s, r"\$0" ) . to_string ( )
8787 }
8888}
8989
@@ -101,23 +101,23 @@ mod test {
101101
102102 assert_eq ! (
103103 TagValue ( & Type :: Text ( "this is my special string" . into( ) ) ) . escape( ) ,
104- r# "this\ is\ my\ special\ string"#
104+ r"this\ is\ my\ special\ string"
105105 ) ;
106106 assert_eq ! (
107107 TagValue ( & Type :: Text ( "a tag w=i th == tons of escapes" . into( ) ) ) . escape( ) ,
108- r# "a\ tag\ w\=i\ th\ \=\=\ tons\ of\ escapes"#
108+ r"a\ tag\ w\=i\ th\ \=\=\ tons\ of\ escapes"
109109 ) ;
110110 assert_eq ! (
111111 TagValue ( & Type :: Text ( "no_escapes" . into( ) ) ) . escape( ) ,
112112 r#"no_escapes"#
113113 ) ;
114114 assert_eq ! (
115115 TagValue ( & Type :: Text ( "some,commas,here" . into( ) ) ) . escape( ) ,
116- r# "some\,commas\,here"#
116+ r"some\,commas\,here"
117117 ) ;
118118
119119 assert_eq ! ( Measurement ( r#"wea", ther"# ) . escape( ) , r#"wea"\,\ ther"# ) ;
120- assert_eq ! ( TagKey ( r# "locat\ ,=ion"# ) . escape( ) , r# "locat\\ \,\=ion"# ) ;
120+ assert_eq ! ( TagKey ( r"locat\ ,=ion" ) . escape( ) , r"locat\\ \,\=ion" ) ;
121121
122122 assert_eq ! ( FieldValue ( & Type :: Boolean ( true ) ) . escape( ) , r#"true"# ) ;
123123 assert_eq ! ( FieldValue ( & Type :: Boolean ( false ) ) . escape( ) , r#"false"# ) ;
0 commit comments