Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions typify-impl/src/type_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,15 +880,6 @@ impl TypeEntry {
value.parse()
}
}
impl ::std::convert::TryFrom<&::std::string::String> for #type_name {
type Error = self::error::ConversionError;

fn try_from(value: &::std::string::String) ->
::std::result::Result<Self, self::error::ConversionError>
{
value.parse()
}
}
impl ::std::convert::TryFrom<::std::string::String> for #type_name {
type Error = self::error::ConversionError;

Expand Down Expand Up @@ -946,15 +937,6 @@ impl TypeEntry {
value.parse()
}
}
impl ::std::convert::TryFrom<&::std::string::String> for #type_name {
type Error = self::error::ConversionError;

fn try_from(value: &::std::string::String) ->
::std::result::Result<Self, self::error::ConversionError>
{
value.parse()
}
}
impl ::std::convert::TryFrom<::std::string::String> for #type_name {
type Error = self::error::ConversionError;

Expand Down Expand Up @@ -1654,15 +1636,6 @@ impl TypeEntry {
value.parse()
}
}
impl ::std::convert::TryFrom<&::std::string::String> for #type_name {
type Error = self::error::ConversionError;

fn try_from(value: &::std::string::String) ->
::std::result::Result<Self, self::error::ConversionError>
{
value.parse()
}
}
impl ::std::convert::TryFrom<::std::string::String> for #type_name {
type Error = self::error::ConversionError;

Expand Down
8 changes: 0 additions & 8 deletions typify-impl/tests/generator.out
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,6 @@ mod types {
value.parse()
}
}
impl ::std::convert::TryFrom<&::std::string::String> for StringEnum {
type Error = self::error::ConversionError;
fn try_from(
value: &::std::string::String,
) -> ::std::result::Result<Self, self::error::ConversionError> {
value.parse()
}
}
impl ::std::convert::TryFrom<::std::string::String> for StringEnum {
type Error = self::error::ConversionError;
fn try_from(
Expand Down
Loading