mirror of
https://github.com/fafhrd91/actix-web
synced 2025-02-22 04:03:17 +01:00
fix: remove trait bound
This commit is contained in:
parent
570d0fc156
commit
04e8a417e1
@ -88,10 +88,7 @@ impl<T: DeserializeOwned> Query<T> {
|
||||
.map_err(QueryPayloadError::Deserialize)
|
||||
}
|
||||
#[cfg(feature = "beautify-errors")]
|
||||
pub fn from_query(query_str: &str) -> Result<Self, QueryPayloadError>
|
||||
where
|
||||
T: de::DeserializeOwned,
|
||||
{
|
||||
pub fn from_query(query_str: &str) -> Result<Self, QueryPayloadError> {
|
||||
let deserializer = serde_urlencoded::Deserializer::new(parse(query_str.as_bytes()));
|
||||
let qs = serde_path_to_error::deserialize(deserializer)
|
||||
.map(Self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user