mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-31 11:26:59 +02:00
mark Cors builder as must_use
This commit is contained in:
@@ -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.
|
||||||
|
@@ -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>>,
|
||||||
|
Reference in New Issue
Block a user