Skip to content

Commit 3a14d6b

Browse files
committed
Simplify epsilon macro
1 parent b5a7b14 commit 3a14d6b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/helper.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ macro_rules! opt_vec {
4747

4848
macro_rules! epsilon {
4949
($i:expr,) => {
50-
call!($i, {
51-
fn epsilon<T>(input: T) -> ::nom::IResult<T, ()> {
52-
::nom::IResult::Done(input, ())
53-
}
54-
epsilon
55-
})
50+
value!($i, ())
5651
};
5752
}

0 commit comments

Comments
 (0)