Skip to content

Commit

Permalink
fix new clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar authored and GuillaumeGomez committed Jan 10, 2025
1 parent 9368f26 commit 69453ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ pub(crate) async fn rustdoc_html_server_handler(
}
}

if req_path.first().map_or(false, |p| p.contains('-')) {
if req_path.first().is_some_and(|p| p.contains('-')) {
// This is a target, not a module; it may not have been built.
// Redirect to the default target and show a search page instead of a hard 404.
return Ok(axum_cached_redirect(
Expand Down

0 comments on commit 69453ac

Please sign in to comment.