update libraries

This commit is contained in:
2021-08-20 21:43:11 +02:00
parent ded6d806f9
commit 3c7a84a124
2 changed files with 9 additions and 8 deletions
+3 -2
View File
@@ -76,7 +76,6 @@ use std::{borrow::Cow, io::BufRead, ops};
use reqwest::blocking::{multipart, Client, RequestBuilder, Response};
use tap_reader::Tap;
use tungstenite::client::AutoStream;
use crate::{entities::prelude::*, page::Page};
@@ -90,6 +89,8 @@ pub use crate::{
status_builder::{NewStatus, StatusBuilder},
};
pub use isolang::Language;
use tungstenite::stream::MaybeTlsStream;
use std::net::TcpStream;
/// Registering your App
pub mod apps;
@@ -650,7 +651,7 @@ impl MastodonClient for Mastodon {
#[derive(Debug)]
/// WebSocket newtype so that EventStream can be implemented without coherency
/// issues
pub struct WebSocket(tungstenite::protocol::WebSocket<AutoStream>);
pub struct WebSocket(tungstenite::protocol::WebSocket<MaybeTlsStream<TcpStream>>);
/// A type that streaming events can be read from
pub trait EventStream {