Skip to content

Commit

Permalink
chore(web): Remove unnecessary list clone (#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Sep 28, 2024
1 parent e8da1a3 commit 3ec86d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic-web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ where
.allow_origin(AllowOrigin::mirror_request())
.allow_credentials(true)
.max_age(DEFAULT_MAX_AGE)
.expose_headers(DEFAULT_EXPOSED_HEADERS.iter().cloned().collect::<Vec<_>>())
.expose_headers(DEFAULT_EXPOSED_HEADERS)
.allow_headers(
DEFAULT_ALLOW_HEADERS
.iter()
Expand Down

0 comments on commit 3ec86d6

Please sign in to comment.