Skip to content

Commit 97e7e73

Browse files
committed
Clean up two awkward wgettext_fmt invocations
1 parent 836ee93 commit 97e7e73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/builtins/abbr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ fn abbr_add(opts: &Options, streams: &mut IoStreams) -> Option<c_int> {
324324
.append(wgettext_fmt!("%ls: %ls\n", CMD, regex_pattern.as_utfstr()));
325325
streams
326326
.err
327-
.append(wgettext_fmt!("%ls: %*ls\n", CMD, offset, "^"));
327+
.append(sprintf!("%ls: %*ls\n", CMD, offset, "^"));
328328
}
329329
return STATUS_INVALID_ARGS;
330330
}

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ impl Parser {
947947
&wgettext_fmt!(
948948
"Could not write profiling information to file '%s': %s",
949949
&String::from_utf8_lossy(path),
950-
format!("{}", err)
950+
err.to_string()
951951
)
952952
);
953953
return;

0 commit comments

Comments
 (0)