Adopt and apply nightly rustfmt configuration

This commit is contained in:
Juno Takano 2026-02-16 16:17:10 -03:00
commit d7d034757a
45 changed files with 431 additions and 474 deletions

View file

@ -3,13 +3,13 @@ use axum::{Router, routing::get};
use crate::graph::Graph;
mod handlers {
pub mod graph;
pub mod template;
pub mod raw;
pub mod navigation;
pub mod fixed;
pub mod error;
pub mod fixed;
pub mod graph;
pub mod mime;
pub mod navigation;
pub mod raw;
pub mod template;
}
#[derive(Clone)]
@ -49,11 +49,6 @@ pub fn new(graph: Graph) -> Router {
#[cfg(test)]
mod tests {
use crate::{
graph::{Graph, Config, Meta},
};
use super::*;
use axum::{
body::Body,
http::{Request, StatusCode},
@ -61,6 +56,9 @@ mod tests {
};
use tower::ServiceExt as _;
use super::*;
use crate::graph::{Config, Graph, Meta};
async fn request(uri: &str, config: Option<&Config>) -> Response<Body> {
let default_graph = Graph::load();
let graph = Graph {