1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00

mark Cors builder as must_use

This commit is contained in:
Rob Ede 2024-01-04 03:32:24 +00:00
parent 57eaad2ffe
commit b694c9317a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@
## Unreleased ## Unreleased
- `Cors` is now marked `#[must_use]`.
## 0.6.5 ## 0.6.5
- Fix `Vary` header when Private Network Access is enabled. - Fix `Vary` header when Private Network Access is enabled.

View File

@ -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 /// [Fetch Standard CORS protocol]: https://fetch.spec.whatwg.org/#http-cors-protocol
#[derive(Debug)] #[derive(Debug)]
#[must_use]
pub struct Cors { pub struct Cors {
inner: Rc<Inner>, inner: Rc<Inner>,
error: Option<Either<HttpError, CorsError>>, error: Option<Either<HttpError, CorsError>>,