Skip to content

Commit

Permalink
Inner field of web::Query is public again (actix#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchalmers committed Feb 20, 2021
1 parent 8336505 commit 1f76a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Feature `cookies` is now optional and enabled by default. [#1981]
* `JsonBody::new` returns a default limit of 32kB to be consistent with `JsonConfig` and the
default behaviour of the `web::Json<T>` extractor. [#2010]
* `web::Query` has a public inner field again [#2016]

[#1981]: https://github.com/actix/actix-web/pull/1981
[#2010]: https://github.com/actix/actix-web/pull/2010
Expand Down
2 changes: 1 addition & 1 deletion src/types/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use crate::{dev::Payload, error::QueryPayloadError, Error, FromRequest, HttpRequ
/// }
/// ```
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Query<T>(T);
pub struct Query<T>(pub T);

impl<T> Query<T> {
/// Unwrap into inner `T` value.
Expand Down

0 comments on commit 1f76a92

Please sign in to comment.