@@ -83,7 +83,7 @@ impl LineProtoTerm<'_> {
83
83
}
84
84
85
85
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 ( )
87
87
}
88
88
}
89
89
@@ -101,23 +101,23 @@ mod test {
101
101
102
102
assert_eq ! (
103
103
TagValue ( & Type :: Text ( "this is my special string" . into( ) ) ) . escape( ) ,
104
- r# "this\ is\ my\ special\ string"#
104
+ r"this\ is\ my\ special\ string"
105
105
) ;
106
106
assert_eq ! (
107
107
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"
109
109
) ;
110
110
assert_eq ! (
111
111
TagValue ( & Type :: Text ( "no_escapes" . into( ) ) ) . escape( ) ,
112
112
r#"no_escapes"#
113
113
) ;
114
114
assert_eq ! (
115
115
TagValue ( & Type :: Text ( "some,commas,here" . into( ) ) ) . escape( ) ,
116
- r# "some\,commas\,here"#
116
+ r"some\,commas\,here"
117
117
) ;
118
118
119
119
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" ) ;
121
121
122
122
assert_eq ! ( FieldValue ( & Type :: Boolean ( true ) ) . escape( ) , r#"true"# ) ;
123
123
assert_eq ! ( FieldValue ( & Type :: Boolean ( false ) ) . escape( ) , r#"false"# ) ;
0 commit comments