Skip to content

Commit

Permalink
merge and remove debug kludge
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl committed Dec 24, 2024
1 parent a39844d commit 95e6ed6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion progenitor-client/src/progenitor_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ where
{
// Serialize the value through self which will proxy into the inner
// Serializer as appropriate.
Ok(value.serialize(self).unwrap())
value.serialize(self)
}

fn serialize_unit(self) -> Result<Self::Ok, Self::Error> {
Expand Down
1 change: 1 addition & 0 deletions progenitor-client/tests/client_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ fn test_query_enum_untagged() {
assert_eq!(result, "paramName=1&paramName=2&paramName=3&paramName=4");

#[derive(Serialize)]
#[serde(transparent)]
struct Name(String);
#[derive(Serialize)]
#[serde(untagged)]
Expand Down
4 changes: 2 additions & 2 deletions progenitor-impl/tests/output/src/buildomat_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ pub mod types {
Variant1(::std::vec::Vec<::std::string::String>),
}

impl From<&GetThingOrThingsId> for GetThingOrThingsId {
impl ::std::convert::From<&GetThingOrThingsId> for GetThingOrThingsId {
fn from(value: &GetThingOrThingsId) -> Self {
value.clone()
}
}

impl From<::std::vec::Vec<::std::string::String>> for GetThingOrThingsId {
impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for GetThingOrThingsId {
fn from(value: ::std::vec::Vec<::std::string::String>) -> Self {
Self::Variant1(value)
}
Expand Down
4 changes: 2 additions & 2 deletions progenitor-impl/tests/output/src/buildomat_builder_tagged.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ pub mod types {
Variant1(::std::vec::Vec<::std::string::String>),
}

impl From<&GetThingOrThingsId> for GetThingOrThingsId {
impl ::std::convert::From<&GetThingOrThingsId> for GetThingOrThingsId {
fn from(value: &GetThingOrThingsId) -> Self {
value.clone()
}
}

impl From<::std::vec::Vec<::std::string::String>> for GetThingOrThingsId {
impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for GetThingOrThingsId {
fn from(value: ::std::vec::Vec<::std::string::String>) -> Self {
Self::Variant1(value)
}
Expand Down
4 changes: 2 additions & 2 deletions progenitor-impl/tests/output/src/buildomat_positional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ pub mod types {
Variant1(::std::vec::Vec<::std::string::String>),
}

impl From<&GetThingOrThingsId> for GetThingOrThingsId {
impl ::std::convert::From<&GetThingOrThingsId> for GetThingOrThingsId {
fn from(value: &GetThingOrThingsId) -> Self {
value.clone()
}
}

impl From<::std::vec::Vec<::std::string::String>> for GetThingOrThingsId {
impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for GetThingOrThingsId {
fn from(value: ::std::vec::Vec<::std::string::String>) -> Self {
Self::Variant1(value)
}
Expand Down

0 comments on commit 95e6ed6

Please sign in to comment.