forked from MightyPork/elefren-fork
update libraries
This commit is contained in:
+3
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user