diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-27 17:02:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-30 23:21:18 -0700 |
| commit | a8ba31dbf3e7d80a069bc486a35eff8357282b68 (patch) | |
| tree | 8a00829d527c443d16988b98cd7c97f1d3d4dac6 /src/libstd/fmt | |
| parent | aaf6cc3a841095a95a9c74a6a2a3709dffd7a4e9 (diff) | |
| download | rust-a8ba31dbf3e7d80a069bc486a35eff8357282b68.tar.gz rust-a8ba31dbf3e7d80a069bc486a35eff8357282b68.zip | |
std: Remove usage of fmt!
Diffstat (limited to 'src/libstd/fmt')
| -rw-r--r-- | src/libstd/fmt/parse.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libstd/fmt/parse.rs b/src/libstd/fmt/parse.rs index 9888af9313b..b185b67d09c 100644 --- a/src/libstd/fmt/parse.rs +++ b/src/libstd/fmt/parse.rs @@ -234,7 +234,7 @@ impl<'self> Parser<'self> { Some((_, c @ '#')) | Some((_, c @ '{')) | Some((_, c @ '\\')) | Some((_, c @ '}')) => { c } Some((_, c)) => { - self.err(fmt!("invalid escape character `%c`", c)); + self.err(format!("invalid escape character `{}`", c)); c } None => { @@ -378,7 +378,7 @@ impl<'self> Parser<'self> { return None; } method => { - self.err(fmt!("unknown method: `%s`", method)); + self.err(format!("unknown method: `{}`", method)); return None; } } @@ -448,8 +448,8 @@ impl<'self> Parser<'self> { Some((_, 'f')) => { let word = self.word(); if word != "offset" { - self.err(fmt!("expected `offset`, found `%s`", - word)); + self.err(format!("expected `offset`, found `{}`", + word)); } else { if !self.consume(':') { self.err(~"`offset` must be followed by `:`"); @@ -490,7 +490,8 @@ impl<'self> Parser<'self> { "few" => Left(Few), "many" => Left(Many), word => { - self.err(fmt!("unexpected plural selector `%s`", word)); + self.err(format!("unexpected plural selector `{}`", + word)); if word == "" { break } else { |
