mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-22 12:44:57 +08:00
Clean up two awkward wgettext_fmt invocations
This commit is contained in:
parent
836ee93617
commit
97e7e730e1
|
@ -324,7 +324,7 @@ fn abbr_add(opts: &Options, streams: &mut IoStreams) -> Option<c_int> {
|
||||||
.append(wgettext_fmt!("%ls: %ls\n", CMD, regex_pattern.as_utfstr()));
|
.append(wgettext_fmt!("%ls: %ls\n", CMD, regex_pattern.as_utfstr()));
|
||||||
streams
|
streams
|
||||||
.err
|
.err
|
||||||
.append(wgettext_fmt!("%ls: %*ls\n", CMD, offset, "^"));
|
.append(sprintf!("%ls: %*ls\n", CMD, offset, "^"));
|
||||||
}
|
}
|
||||||
return STATUS_INVALID_ARGS;
|
return STATUS_INVALID_ARGS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -947,7 +947,7 @@ impl Parser {
|
||||||
&wgettext_fmt!(
|
&wgettext_fmt!(
|
||||||
"Could not write profiling information to file '%s': %s",
|
"Could not write profiling information to file '%s': %s",
|
||||||
&String::from_utf8_lossy(path),
|
&String::from_utf8_lossy(path),
|
||||||
format!("{}", err)
|
err.to_string()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user