mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +01:00
Update src/dispatching2/dispatcher.rs
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
parent
4259dcce7b
commit
9306f6d484
1 changed files with 1 additions and 4 deletions
|
@ -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"
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue