Private
Public Access
1
0

cargo fmt

This commit is contained in:
2025-06-06 16:39:31 -07:00
parent 8cd72d9417
commit 1d3b2f25ba
44 changed files with 758 additions and 505 deletions

View File

@@ -22,7 +22,7 @@ impl Default for InMemoryAuthenticationStore {
impl InMemoryAuthenticationStore {
pub fn new(credentials: Option<Credentials>) -> Self {
Self {
Self {
credentials,
token: None,
}

View File

@@ -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;
}
}