mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 20:25:25 +08:00
printf: implement Printf for &WString
This commit is contained in:
parent
333056a9ec
commit
71c2f08e5d
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user