Skip to content

Commit

Permalink
Clean up two awkward wgettext_fmt invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
faho committed Mar 5, 2024
1 parent 3c7b2af commit 562d0fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builtins/abbr.rs
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser.rs
Expand Up @@ -962,7 +962,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;
Expand Down

0 comments on commit 562d0fe

Please sign in to comment.