Skip to content

Commit

Permalink
mark Cors builder as must_use
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jan 4, 2024
1 parent 57eaad2 commit b694c93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actix-cors/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- `Cors` is now marked `#[must_use]`.

## 0.6.5

- Fix `Vary` header when Private Network Access is enabled.
Expand Down
1 change: 1 addition & 0 deletions actix-cors/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ static ALL_METHODS_SET: Lazy<HashSet<Method>> = Lazy::new(|| {
///
/// [Fetch Standard CORS protocol]: https://fetch.spec.whatwg.org/#http-cors-protocol
#[derive(Debug)]
#[must_use]
pub struct Cors {
inner: Rc<Inner>,
error: Option<Either<HttpError, CorsError>>,
Expand Down

0 comments on commit b694c93

Please sign in to comment.