printf: implement Printf for &WString

This commit is contained in:
Xiretza 2023-02-11 21:27:37 +01:00 committed by Johannes Altmanninger
parent 333056a9ec
commit 71c2f08e5d

View file

@ -508,3 +508,9 @@ impl Printf for WString {
self.as_utfstr().format(spec)
}
}
impl Printf for &WString {
fn format(&self, spec: &ConversionSpecifier) -> Result<WString> {
self.as_utfstr().format(spec)
}
}