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/libnum/complex.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/libnum/complex.rs')
| -rw-r--r-- | src/libnum/complex.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libnum/complex.rs b/src/libnum/complex.rs index a4c21839214..6c5547b28e8 100644 --- a/src/libnum/complex.rs +++ b/src/libnum/complex.rs @@ -177,13 +177,13 @@ impl<T: fmt::Show + Num + Ord> fmt::Show for Complex<T> { impl<T: ToStrRadix + Num + Ord> ToStrRadix for Complex<T> { fn to_str_radix(&self, radix: uint) -> String { if self.im < Zero::zero() { - format_strbuf!("{}-{}i", - self.re.to_str_radix(radix), - (-self.im).to_str_radix(radix)) + format!("{}-{}i", + self.re.to_str_radix(radix), + (-self.im).to_str_radix(radix)) } else { - format_strbuf!("{}+{}i", - self.re.to_str_radix(radix), - self.im.to_str_radix(radix)) + format!("{}+{}i", + self.re.to_str_radix(radix), + self.im.to_str_radix(radix)) } } } |
