cargo fmt
This commit is contained in:
@@ -22,7 +22,7 @@ impl Default for InMemoryAuthenticationStore {
|
||||
|
||||
impl InMemoryAuthenticationStore {
|
||||
pub fn new(credentials: Option<Credentials>) -> Self {
|
||||
Self {
|
||||
Self {
|
||||
credentials,
|
||||
token: None,
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use async_trait::async_trait;
|
||||
use crate::model::update::UpdateItem;
|
||||
use crate::model::event::Event;
|
||||
use crate::model::update::UpdateItem;
|
||||
use async_trait::async_trait;
|
||||
use futures_util::stream::Stream;
|
||||
|
||||
#[async_trait]
|
||||
@@ -8,10 +8,10 @@ pub trait EventSocket {
|
||||
type Error;
|
||||
type EventStream: Stream<Item = Result<Event, Self::Error>>;
|
||||
type UpdateStream: Stream<Item = Result<Vec<UpdateItem>, Self::Error>>;
|
||||
|
||||
/// Modern event pipeline
|
||||
|
||||
/// Modern event pipeline
|
||||
async fn events(self) -> Self::EventStream;
|
||||
|
||||
/// Raw update items from the v1 API.
|
||||
/// Raw update items from the v1 API.
|
||||
async fn raw_updates(self) -> Self::UpdateStream;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user