Clean up two awkward wgettext_fmt invocations

This commit is contained in:
Fabian Boehm 2024-03-05 17:16:26 +01:00
parent 836ee93617
commit 97e7e730e1
2 changed files with 2 additions and 2 deletions

View file

@ -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()));
streams
.err
.append(wgettext_fmt!("%ls: %*ls\n", CMD, offset, "^"));
.append(sprintf!("%ls: %*ls\n", CMD, offset, "^"));
}
return STATUS_INVALID_ARGS;
}

View file

@ -947,7 +947,7 @@ impl Parser {
&wgettext_fmt!(
"Could not write profiling information to file '%s': %s",
&String::from_utf8_lossy(path),
format!("{}", err)
err.to_string()
)
);
return;