mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 15:51:06 +01:00
mark Cors builder as must_use
This commit is contained in:
parent
57eaad2ffe
commit
b694c9317a
@ -2,6 +2,8 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- `Cors` is now marked `#[must_use]`.
|
||||
|
||||
## 0.6.5
|
||||
|
||||
- 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
|
||||
#[derive(Debug)]
|
||||
#[must_use]
|
||||
pub struct Cors {
|
||||
inner: Rc<Inner>,
|
||||
error: Option<Either<HttpError, CorsError>>,
|
||||
|
Loading…
Reference in New Issue
Block a user