fmt: improve formatting
This commit is contained in:
+7
-7
@@ -7,10 +7,15 @@ edition = "2024"
|
||||
axum = "0.8.9"
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.150"
|
||||
time = { version = "0.3.47", features = ["serde", "formatting"] }
|
||||
time = { version = "0.3.47", features = ["formatting", "serde"] }
|
||||
tokio = { version = "1.52.3", features = ["full"] }
|
||||
tower-http = { version = "0.6.11", features = ["fs"] }
|
||||
uuid = { version = "1.23.2", features = ["v4", "serde"] }
|
||||
uuid = { version = "1.23.2", features = ["serde", "v4"] }
|
||||
|
||||
[dev-dependencies]
|
||||
http-body-util = "0.1.3"
|
||||
tempfile = "3.27.0"
|
||||
tower = { version = "0.5.3", features = ["util"] }
|
||||
|
||||
[lints.clippy]
|
||||
pedantic = { level = "warn", priority = -1 }
|
||||
@@ -26,8 +31,3 @@ strip = true
|
||||
lto = true
|
||||
panic = "unwind"
|
||||
codegen-units = 1
|
||||
|
||||
[dev-dependencies]
|
||||
http-body-util = "0.1.3"
|
||||
tempfile = "3.27.0"
|
||||
tower = { version = "0.5.3", features = ["util"] }
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
fmt:
|
||||
cargo fmt --all
|
||||
cargo +nightly fmt --all
|
||||
fd -e toml -x tombi format --quiet
|
||||
|
||||
test:
|
||||
cargo test --all-targets
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
edition = "2024"
|
||||
group_imports = "StdExternalCrate"
|
||||
imports_granularity = "Crate"
|
||||
imports_layout = "HorizontalVertical"
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
use axum::{
|
||||
Json,
|
||||
body::Bytes,
|
||||
extract::Path,
|
||||
extract::State,
|
||||
extract::{Path, State},
|
||||
http::StatusCode,
|
||||
response::{IntoResponse, Response},
|
||||
};
|
||||
|
||||
+5
-1
@@ -9,7 +9,11 @@ use tokio::{fs, io::AsyncWriteExt};
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::model::{
|
||||
CHUNK_SIZE, CompleteUploadResponse, CreateUploadRequest, UploadMeta, UploadProgressResponse,
|
||||
CHUNK_SIZE,
|
||||
CompleteUploadResponse,
|
||||
CreateUploadRequest,
|
||||
UploadMeta,
|
||||
UploadProgressResponse,
|
||||
};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user