Rust update on macros syntax

This commit is contained in:
Alexis Mousset
2014-12-19 18:57:10 +01:00
parent 219ced7c68
commit d2dfaca536
2 changed files with 5 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ macro_rules! try_smtp (
Err(err) => close_and_return_err!(err $client),
}
})
)
);
macro_rules! close_and_return_err (
($err: expr $client: ident) => ({
@@ -88,7 +88,7 @@ macro_rules! close_and_return_err (
}
return Err(FromError::from_error($err))
})
)
);
macro_rules! check_command_sequence (
($command: ident $client: ident) => ({
@@ -98,7 +98,7 @@ macro_rules! check_command_sequence (
);
}
})
)
);
impl<S = TcpStream> Client<S> {
/// Creates a new SMTP client