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())); .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;
} }

View File

@ -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;