🧑💻 Simplify service::HttpRequest to HttpRequest
This commit is contained in:
parent
a9a5d232a2
commit
aba7c4d8ce
11 changed files with 15 additions and 17 deletions
|
|
@ -5,6 +5,7 @@ mod figfont;
|
|||
use crate::core::{package, package::PackageRef};
|
||||
use crate::html::Markup;
|
||||
use crate::response::page::{ErrorPage, ResultPage};
|
||||
use crate::service::HttpRequest;
|
||||
use crate::{config, locale, service, trace, LazyStatic};
|
||||
|
||||
#[cfg(feature = "database")]
|
||||
|
|
@ -162,6 +163,6 @@ impl Application {
|
|||
}
|
||||
}
|
||||
|
||||
async fn service_not_found(request: service::HttpRequest) -> ResultPage<Markup, ErrorPage> {
|
||||
async fn service_not_found(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
|
||||
Err(ErrorPage::NotFound(request))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue