Skip to content

Commit 69453ac

Browse files
sypharGuillaumeGomez
authored andcommitted
fix new clippy error
1 parent 9368f26 commit 69453ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ pub(crate) async fn rustdoc_html_server_handler(
500500
}
501501
}
502502

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

0 commit comments

Comments
 (0)