From 418f514fc46f45ae2901753e3398adb33664bed9 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 2 Apr 2023 21:38:17 +0200 Subject: I, for one, welcome our new clippy overlords --- tests/trivial.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/trivial.rs') 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 -- cgit v1.2.3