diff --git a/src/utils.rs b/src/utils.rs index ff75a06..f44d037 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1029,7 +1029,7 @@ pub fn redirect(path: &str) -> Response { /// Renders a generic error landing page. pub async fn error(req: Request, msg: &str) -> Result, 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(),