Merge pull request #755 from bradms/poem-error-fix
Fix compilation with change from poem 1.2.x
This commit is contained in:
commit
efcd4a33c1
|
@ -30,7 +30,7 @@ impl<'a> FromRequest<'a> for GraphQLProtocol {
|
||||||
.find_map(|p| WebSocketProtocols::from_str(p.trim()).ok())
|
.find_map(|p| WebSocketProtocols::from_str(p.trim()).ok())
|
||||||
})
|
})
|
||||||
.map(Self)
|
.map(Self)
|
||||||
.ok_or_else(|| Error::new_with_status(StatusCode::BAD_REQUEST))
|
.ok_or_else(|| Error::from_status(StatusCode::BAD_REQUEST))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user