Skip to content

Commit 9ce27a4

Browse files
fix clippy errors
1 parent 2bd838e commit 9ce27a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/fastly/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async fn route_request(settings: Settings, req: Request) -> Result<Response, Err
144144
};
145145

146146
// Convert any errors to HTTP error responses
147-
let mut response = result.map_or_else(|e| to_error_response(e), |r| r);
147+
let mut response = result.unwrap_or_else(to_error_response);
148148

149149
// Add X-Robots-Tag header to prevent crawlers and indexers
150150
response.set_header("X-Robots-Tag", "noindex, nofollow");

0 commit comments

Comments
 (0)