2021-06-29 12:00:46 -05:00
|
|
|
use std::fmt;
|
|
|
|
|
|
|
|
#[derive(PartialEq, Eq)]
|
2021-08-03 20:56:40 -05:00
|
|
|
pub struct Ps<'a>(pub &'a str);
|
2021-06-29 12:00:46 -05:00
|
|
|
|
|
|
|
/// Make diff to display string as multi-line string
|
2021-08-03 20:56:40 -05:00
|
|
|
impl<'a> fmt::Debug for Ps<'a> {
|
2021-06-29 12:00:46 -05:00
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
|
|
f.write_str(self.0)
|
|
|
|
}
|
|
|
|
}
|