@@ -262,8 +262,8 @@ impl TestSuite {
262
262
}
263
263
264
264
/// Sets standard output.
265
- pub fn set_system_out ( & mut self , system_out : impl AsRef < str > ) -> & mut Self {
266
- self . system_out = Some ( XmlString :: new ( system_out. as_ref ( ) ) ) ;
265
+ pub fn set_system_out ( & mut self , system_out : impl Into < XmlString > ) -> & mut Self {
266
+ self . system_out = Some ( system_out. into ( ) ) ;
267
267
self
268
268
}
269
269
@@ -275,8 +275,8 @@ impl TestSuite {
275
275
}
276
276
277
277
/// Sets standard error.
278
- pub fn set_system_err ( & mut self , system_err : impl AsRef < str > ) -> & mut Self {
279
- self . system_err = Some ( XmlString :: new ( system_err. as_ref ( ) ) ) ;
278
+ pub fn set_system_err ( & mut self , system_err : impl Into < XmlString > ) -> & mut Self {
279
+ self . system_err = Some ( system_err. into ( ) ) ;
280
280
self
281
281
}
282
282
@@ -621,8 +621,8 @@ impl TestRerun {
621
621
}
622
622
623
623
/// Sets standard output.
624
- pub fn set_system_out ( & mut self , system_out : impl AsRef < str > ) -> & mut Self {
625
- self . system_out = Some ( XmlString :: new ( system_out. as_ref ( ) ) ) ;
624
+ pub fn set_system_out ( & mut self , system_out : impl Into < XmlString > ) -> & mut Self {
625
+ self . system_out = Some ( system_out. into ( ) ) ;
626
626
self
627
627
}
628
628
@@ -634,8 +634,8 @@ impl TestRerun {
634
634
}
635
635
636
636
/// Sets standard error.
637
- pub fn set_system_err ( & mut self , system_err : impl AsRef < str > ) -> & mut Self {
638
- self . system_err = Some ( XmlString :: new ( system_err. as_ref ( ) ) ) ;
637
+ pub fn set_system_err ( & mut self , system_err : impl Into < XmlString > ) -> & mut Self {
638
+ self . system_err = Some ( system_err. into ( ) ) ;
639
639
self
640
640
}
641
641
0 commit comments