chore(clippy): fix lint
This commit is contained in:
parent
997cd8f829
commit
9013e589dd
@ -1029,7 +1029,7 @@ pub fn redirect(path: &str) -> Response<Body> {
|
||||
|
||||
/// Renders a generic error landing page.
|
||||
pub async fn error(req: Request<Body>, msg: &str) -> Result<Response<Body>, String> {
|
||||
error!("Error page rendered: {}", msg.split("|").next().unwrap_or_default());
|
||||
error!("Error page rendered: {}", msg.split('|').next().unwrap_or_default());
|
||||
let url = req.uri().to_string();
|
||||
let body = ErrorTemplate {
|
||||
msg: msg.to_string(),
|
||||
|
Loading…
Reference in New Issue
Block a user