We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9368f26 commit 69453acCopy full SHA for 69453ac
src/web/rustdoc.rs
@@ -500,7 +500,7 @@ pub(crate) async fn rustdoc_html_server_handler(
500
}
501
502
503
- if req_path.first().map_or(false, |p| p.contains('-')) {
+ if req_path.first().is_some_and(|p| p.contains('-')) {
504
// This is a target, not a module; it may not have been built.
505
// Redirect to the default target and show a search page instead of a hard 404.
506
return Ok(axum_cached_redirect(
0 commit comments