diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-27 20:44:58 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-28 08:35:41 -0700 |
| commit | 42aed6bde2fb05a262e21334656cdf91f51744dd (patch) | |
| tree | 0b7c43f70001fe714a13f95df7e2807a8fdfb85b /src/libserialize/json.rs | |
| parent | 24b1ce1daf9dbf66d04116d0549a48a7610bc614 (diff) | |
| download | rust-42aed6bde2fb05a262e21334656cdf91f51744dd.tar.gz rust-42aed6bde2fb05a262e21334656cdf91f51744dd.zip | |
std: Remove format_strbuf!()
This was only ever a transitionary macro.
Diffstat (limited to 'src/libserialize/json.rs')
| -rw-r--r-- | src/libserialize/json.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs index 08ac66959bc..09ba46bf0c7 100644 --- a/src/libserialize/json.rs +++ b/src/libserialize/json.rs @@ -1819,7 +1819,7 @@ macro_rules! expect( match $e { Null => Ok(()), other => Err(ExpectedError("Null".to_string(), - format_strbuf!("{}", other))) + format!("{}", other))) } }); ($e:expr, $t:ident) => ({ @@ -1827,7 +1827,7 @@ macro_rules! expect( $t(v) => Ok(v), other => { Err(ExpectedError(stringify!($t).to_string(), - format_strbuf!("{}", other))) + format!("{}", other))) } } }) @@ -1869,7 +1869,7 @@ impl ::Decoder<DecoderError> for Decoder { }, value => { Err(ExpectedError("Number".to_string(), - format_strbuf!("{}", value))) + format!("{}", value))) } } } @@ -1887,7 +1887,7 @@ impl ::Decoder<DecoderError> for Decoder { } } Err(ExpectedError("single character string".to_string(), - format_strbuf!("{}", s))) + format!("{}", s))) } fn read_str(&mut self) -> DecodeResult<String> { @@ -1914,7 +1914,7 @@ impl ::Decoder<DecoderError> for Decoder { Some(String(s)) => s, Some(val) => { return Err(ExpectedError("String".to_string(), - format_strbuf!("{}", val))) + format!("{}", val))) } None => { return Err(MissingFieldError("variant".to_string())) @@ -1928,7 +1928,7 @@ impl ::Decoder<DecoderError> for Decoder { }, Some(val) => { return Err(ExpectedError("List".to_string(), - format_strbuf!("{}", val))) + format!("{}", val))) } None => { return Err(MissingFieldError("fields".to_string())) @@ -1938,7 +1938,7 @@ impl ::Decoder<DecoderError> for Decoder { } json => { return Err(ExpectedError("String or Object".to_string(), - format_strbuf!("{}", json))) + format!("{}", json))) } }; let idx = match names.iter() |
