mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +00:00
style: apply rustfmt formatting fixes
This commit is contained in:
+1
-4
@@ -148,10 +148,7 @@ fn render_error_page(site_domain: &Arc<str>, status: StatusCode, message: &str)
|
||||
site_domain: site_domain.clone(),
|
||||
css_version: static_assets::asset_version("style.css"),
|
||||
status_code: status.as_u16(),
|
||||
status_text: status
|
||||
.canonical_reason()
|
||||
.unwrap_or("Error")
|
||||
.to_owned(),
|
||||
status_text: status.canonical_reason().unwrap_or("Error").to_owned(),
|
||||
error_message: message.to_owned(),
|
||||
};
|
||||
match template.render() {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
use axum::Router;
|
||||
use axum::middleware;
|
||||
use axum::routing::get;
|
||||
use axum::Router;
|
||||
|
||||
use crate::handlers::{self, AppState};
|
||||
use crate::middleware::security_headers;
|
||||
|
||||
Reference in New Issue
Block a user