cargo fmt
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
use crate::usimp::*;
|
||||
use crate::usimp::subscription;
|
||||
use crate::usimp::*;
|
||||
|
||||
use serde_json::{Value, from_value, to_value};
|
||||
use serde::{Serialize, Deserialize};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{from_value, to_value, Value};
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
struct Input {
|
||||
@ -11,11 +11,12 @@ struct Input {
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
struct Output {
|
||||
}
|
||||
struct Output {}
|
||||
|
||||
pub async fn handle(input: &InputEnvelope, session: Option<Session>) -> Result<Value, Error> {
|
||||
Ok(to_value(new_event(from_value(input.data.clone())?, session).await?)?)
|
||||
Ok(to_value(
|
||||
new_event(from_value(input.data.clone())?, session).await?,
|
||||
)?)
|
||||
}
|
||||
|
||||
async fn new_event(input: Input, session: Option<Session>) -> Result<Output, Error> {
|
||||
|
Reference in New Issue
Block a user