Skip to content

Commit

Permalink
Removed unnecessary macro declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
aochagavia committed May 24, 2014
1 parent 39c1ecd commit 9088a56
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libserialize/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ pub trait Decodable<D:Decoder<E>, E> {
fn decode(d: &mut D) -> Result<Self, E>;
}

macro_rules! try ( ($e:expr) => (
match $e { Ok(v) => v, Err(e) => return Err(e) }
))

impl<E, S:Encoder<E>> Encodable<S, E> for uint {
fn encode(&self, s: &mut S) -> Result<(), E> {
s.emit_uint(*self)
Expand Down

0 comments on commit 9088a56

Please sign in to comment.