chore: fmt

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-08-27 19:57:22 +02:00
parent 86cfc18076
commit d3beab5006
6 changed files with 670 additions and 521 deletions

View File

@@ -1,13 +1,10 @@
use core::slice::SlicePattern;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use async_trait::async_trait;
#[derive(Clone)]
pub struct Db(Arc<dyn DbTrait + Send + Sync + 'static>);

View File

@@ -1,16 +1,6 @@
use std::sync::Arc;
use axum::{async_trait};
use axum::async_trait;
use tokio::sync::Mutex;
@@ -36,8 +26,6 @@ struct DefaultLeaseService {
leases: Arc<Mutex<Vec<String>>>,
}
#[async_trait]
pub trait LeaseServiceTrait {
async fn create_lease(&self) -> anyhow::Result<String>;