@@ -200,7 +200,7 @@ pub struct InProcessTester {}
200
200
201
201
/// TODO: eu escaping
202
202
fn quote < T : AsRef < str > > ( text : T ) -> String {
203
- format ! ( "\" {}\" " , text. as_ref( ) . replace( " \" " , "\\ \" " ) )
203
+ format ! ( "\" {}\" " , text. as_ref( ) . replace( '\"' , "\\ \" " ) )
204
204
}
205
205
206
206
/// Convert stats to a core expression for output
@@ -253,13 +253,13 @@ impl InProcessTester {
253
253
let stdout = Input :: new (
254
254
Locator :: Literal ( result. stdout . clone ( ) ) ,
255
255
Some ( format ! ( "{}-{}-stdout-text" , & target_name, & format) ) ,
256
- "text" . to_string ( ) ,
256
+ "text" ,
257
257
) ;
258
258
// Literal stderr
259
259
let stderr = Input :: new (
260
260
Locator :: Literal ( result. stderr ) ,
261
261
Some ( format ! ( "{}-{}-stderr-text" , & target_name, & format) ) ,
262
- "text" . to_string ( ) ,
262
+ "text" ,
263
263
) ;
264
264
265
265
let mut expectations: Vec < String > = result
@@ -310,11 +310,7 @@ impl InProcessTester {
310
310
writeln ! ( & mut evidence_script, "}}\n " ) ?;
311
311
312
312
let evidence_script_text = std:: str:: from_utf8 ( & evidence_script) . unwrap ( ) . to_string ( ) ;
313
- let evidence_input = Input :: new (
314
- Locator :: Literal ( evidence_script_text) ,
315
- None ,
316
- "eu" . to_string ( ) ,
317
- ) ;
313
+ let evidence_input = Input :: new ( Locator :: Literal ( evidence_script_text) , None , "eu" ) ;
318
314
inputs. push ( evidence_input) ;
319
315
320
316
let evidence_file = plan. evidence_file_name ( ) ;
0 commit comments