Update src/dispatching2/dispatcher.rs

Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
Hirrolot 2022-02-04 16:43:52 +06:00 committed by GitHub
parent 4259dcce7b
commit 9306f6d484
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,10 +232,7 @@ where
ControlFlow::Continue(deps) => { ControlFlow::Continue(deps) => {
match self.default_handler.clone().dispatch(deps).await { match self.default_handler.clone().dispatch(deps).await {
ControlFlow::Break(()) => {} ControlFlow::Break(()) => {}
ControlFlow::Continue(_) => unreachable!( ControlFlow::Continue(inf) => match inf {},
"This is unreachable due to Infallible type in the DefaultHandler \
type"
),
} }
} }
} }