From 9306f6d4849742617ab4cca8be12ab2d2b682372 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Fri, 4 Feb 2022 16:43:52 +0600 Subject: [PATCH] Update src/dispatching2/dispatcher.rs Co-authored-by: Waffle Maybe --- src/dispatching2/dispatcher.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dispatching2/dispatcher.rs b/src/dispatching2/dispatcher.rs index ae5ec49f..8d4c96a0 100644 --- a/src/dispatching2/dispatcher.rs +++ b/src/dispatching2/dispatcher.rs @@ -232,10 +232,7 @@ where ControlFlow::Continue(deps) => { match self.default_handler.clone().dispatch(deps).await { ControlFlow::Break(()) => {} - ControlFlow::Continue(_) => unreachable!( - "This is unreachable due to Infallible type in the DefaultHandler \ - type" - ), + ControlFlow::Continue(inf) => match inf {}, } } }