mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
printf: implement Printf for &WString
This commit is contained in:
parent
333056a9ec
commit
71c2f08e5d
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue