Skip to content

Commit

Permalink
Relax constraints further.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirTalwar committed Oct 10, 2023
1 parent 481a09c commit f78e9f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust-connector-sdk/src/json_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum JsonResponse<A> {
Serialized(Bytes),
}

impl<A: serde::Serialize + (for<'de> serde::Deserialize<'de>)> JsonResponse<A> {
impl<A: (for<'de> serde::Deserialize<'de>)> JsonResponse<A> {
/// Unwraps the value, deserializing if necessary.
///
/// This is only intended for testing and compatibility. If it lives on a
Expand All @@ -39,7 +39,7 @@ impl<A> From<A> for JsonResponse<A> {
}
}

impl<A: serde::Serialize + (for<'de> serde::Deserialize<'de>)> IntoResponse for JsonResponse<A> {
impl<A: serde::Serialize> IntoResponse for JsonResponse<A> {
fn into_response(self) -> axum::response::Response {
match self {
JsonResponse::Value(value) => axum::Json(value).into_response(),
Expand Down

0 comments on commit f78e9f5

Please sign in to comment.