mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
auto merge of #14405 : aochagavia/rust/pr5, r=cmr
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user