FORMATTING: cargo fmt

This commit is contained in:
Jeremy Wall 2018-06-06 20:38:23 -05:00
parent ab8eb9f101
commit 3ad0e3df25

View File

@ -128,7 +128,7 @@ macro_rules! alt_peek {
} }
} }
); );
// These are our fallback termination cases. // These are our fallback termination cases.
(__inner $i:expr, $fallback:ident, __end) => ( (__inner $i:expr, $fallback:ident, __end) => (
{ {
@ -144,14 +144,14 @@ macro_rules! alt_peek {
$fallback(_i, $($args)*) $fallback(_i, $($args)*)
} }
); );
// This is our default termination case. // This is our default termination case.
// If there is no fallback then we return an Error. // If there is no fallback then we return an Error.
(__inner $i:expr, __end) => { (__inner $i:expr, __end) => {
// FIXME(jwall): We should do a better custom error here. // FIXME(jwall): We should do a better custom error here.
nom::IResult::Error(error_position!($crate::ErrorKind::Alt,$i)) nom::IResult::Error(error_position!($crate::ErrorKind::Alt,$i))
}; };
// alt_peek entry_point. // alt_peek entry_point.
($i:expr, $($rest:tt)*) => { ($i:expr, $($rest:tt)*) => {
// We use __end to define the termination token the recursive rule should consume. // We use __end to define the termination token the recursive rule should consume.