Linted code.
This commit is contained in:
1 parent
894f969d0f
commit
174d7e855a
17 files changed
+304
-206
No files matched your search
+2
-3
@@ -3,12 +3,12 @@ mod views;
|
||||
use actix_utils::future::{ready, Ready};
|
||||
use minijinja;
|
||||
use minijinja_autoreload::AutoReloader;
|
||||
use std::{collections::HashMap, env, fs, io, path::PathBuf};
|
||||
use std::io::{Error, ErrorKind};
|
||||
use std::path::Path;
|
||||
use std::{collections::HashMap, env, fs, io, path::PathBuf};
|
||||
|
||||
use actix_web::{
|
||||
dev::{ServiceResponse},
|
||||
dev::ServiceResponse,
|
||||
error,
|
||||
http::{header::ContentType, StatusCode},
|
||||
middleware::{ErrorHandlerResponse, ErrorHandlers, Logger},
|
||||
@@ -54,7 +54,6 @@ impl FromRequest for MiniJinjaRenderer {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[tokio::main]
|
||||
pub async fn web_ui_main(port: u16, enable_template_autoreload: bool) -> std::io::Result<()> {
|
||||
// The closure is invoked every time the environment is outdated to recreate it.
|
||||
|
||||
Reference in new issue
Block a user