diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-19 19:18:33 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-24 00:15:17 -0800 |
| commit | 8761f79485f11ef03eb6cb569ccb9f4c73e68f11 (patch) | |
| tree | 411eefd07ab744efb0d4934e12900a40912b44d6 /src/libsyntax/crateid.rs | |
| parent | b78b749810f4ed53e8287adfb284f9f32f16b73c (diff) | |
Remove deriving(ToStr)
This has been superseded by deriving(Show). cc #9806
Diffstat (limited to 'src/libsyntax/crateid.rs')
| -rw-r--r-- | src/libsyntax/crateid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/crateid.rs b/src/libsyntax/crateid.rs index d04bedc65b5..2417a6fa1ba 100644 --- a/src/libsyntax/crateid.rs +++ b/src/libsyntax/crateid.rs @@ -30,7 +30,7 @@ pub struct CrateId { impl fmt::Show for CrateId { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - if_ok!(write!(f.buf, "{}", self.path)); + try!(write!(f.buf, "{}", self.path)); let version = match self.version { None => "0.0", Some(ref version) => version.as_slice(), |
