diff --git a/src/builtins/abbr.rs b/src/builtins/abbr.rs index 0915c7125..acf7360b1 100644 --- a/src/builtins/abbr.rs +++ b/src/builtins/abbr.rs @@ -324,7 +324,7 @@ fn abbr_add(opts: &Options, streams: &mut IoStreams) -> Option { .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; } diff --git a/src/parser.rs b/src/parser.rs index ffaf89479..db6b4fb9d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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;