Fix build after resolving conflicts

This commit is contained in:
Waffle 2019-09-21 01:22:31 +03:00
parent 78988205e9
commit 36f146580e

View file

@ -5,7 +5,7 @@ use crate::{
filter::Filter, filter::Filter,
handler::Handler, handler::Handler,
}, },
core::types::{ types::{
Update, Update,
Message, Message,
UpdateKind, UpdateKind,
@ -110,7 +110,7 @@ impl Dispatcher {
where where
S: Stream<Item=Update> S: Stream<Item=Update>
{ {
use futures_util::stream::StreamExt; use futures::StreamExt;
let dp = &*self; let dp = &*self;
@ -202,7 +202,7 @@ mod tests {
#[tokio::test] #[tokio::test]
async fn test() { async fn test() {
use crate::{ use crate::{
core::types::{ types::{
Message, ChatKind, MessageKind, Sender, ForwardKind, MediaKind, Chat, User, Update, UpdateKind Message, ChatKind, MessageKind, Sender, ForwardKind, MediaKind, Chat, User, Update, UpdateKind
}, },
dispatcher::simple::Dispatcher, dispatcher::simple::Dispatcher,
@ -221,7 +221,7 @@ mod tests {
username: Some("WaffleLapkin".to_string()), username: Some("WaffleLapkin".to_string()),
}, },
}, },
message_kind: MessageKind::IncomingMessage { kind: MessageKind::Common {
from: Sender::User(User { from: Sender::User(User {
id: 457569668, id: 457569668,
is_bot: true, is_bot: true,