diff options
| author | Andreas Grois <andi@grois.info> | 2023-04-02 21:38:17 +0200 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2023-04-02 21:53:09 +0200 |
| commit | 418f514fc46f45ae2901753e3398adb33664bed9 (patch) | |
| tree | f8edc0df880a00d4964877d4b835c0eb9e481210 /tests/trivial.rs | |
| parent | 02d01dd1b544a576caeb8da42912c5db904b94bd (diff) | |
I, for one, welcome our new clippy overlords
Diffstat (limited to 'tests/trivial.rs')
| -rw-r--r-- | tests/trivial.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/trivial.rs b/tests/trivial.rs index 5468fe4..5bc1e91 100644 --- a/tests/trivial.rs +++ b/tests/trivial.rs @@ -1,3 +1,5 @@ +#![deny(clippy::pedantic)] +#![deny(clippy::all)] //! A trivial test functor. Not holding any data, so this is basically just a linked list of free-nodes. use higher_free_macro::free; use higher::{Functor, Bind, Apply}; @@ -24,16 +26,16 @@ fn test_trivial_functor() { TrivialFunctor(f) => { match f{ TrivialFreeMonad::Pure(x) => assert_eq!(x, 37*6), - _ => unreachable!() + TrivialFreeMonad::Free(_) => unreachable!() } } } }, - _ => unreachable!() + TrivialFreeMonad::Pure(_) => unreachable!() } } } } - _ => unreachable!() + TrivialFreeMonad::Pure(_) => unreachable!() } }
\ No newline at end of file |
