Skip to content

Commit 62e3def

Browse files
committed
make some more APIs XmlString
1 parent 733d727 commit 62e3def

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/report.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ impl TestSuite {
262262
}
263263

264264
/// 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());
267267
self
268268
}
269269

@@ -275,8 +275,8 @@ impl TestSuite {
275275
}
276276

277277
/// 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());
280280
self
281281
}
282282

@@ -621,8 +621,8 @@ impl TestRerun {
621621
}
622622

623623
/// 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());
626626
self
627627
}
628628

@@ -634,8 +634,8 @@ impl TestRerun {
634634
}
635635

636636
/// 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());
639639
self
640640
}
641641

0 commit comments

Comments
 (0)