Fmt: Added cargofmt config and reformatted files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-20 23:27:48 +01:00
parent 78bb80d510
commit 73a2b077ed
28 changed files with 141 additions and 204 deletions

View File

@@ -1,23 +1,22 @@
#![feature(async_closure)]
use std::process;
use axum::{
extract::FromRef, http::StatusCode, response::IntoResponse, routing::post, Json, Router,
};
use automation::auth::{OpenIDConfig, User};
use automation::config::Config;
use automation::device_manager::DeviceManager;
use automation::devices::{Ntfy, Presence};
use automation::error::ApiError;
use automation::mqtt;
use axum::extract::FromRef;
use axum::http::StatusCode;
use axum::response::IntoResponse;
use axum::routing::post;
use axum::{Json, Router};
use dotenvy::dotenv;
use google_home::{GoogleHome, Request};
use rumqttc::AsyncClient;
use tracing::{debug, error, info};
use automation::{
auth::{OpenIDConfig, User},
config::Config,
device_manager::DeviceManager,
devices::{Ntfy, Presence},
error::ApiError,
mqtt,
};
use google_home::{GoogleHome, Request};
#[derive(Clone)]
struct AppState {
pub openid: OpenIDConfig,