chore(clippy): fix lint

This commit is contained in:
Matthew Esposito 2024-06-19 14:45:55 -04:00
parent 997cd8f829
commit 9013e589dd

View File

@ -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(),