diff --git a/cargo-typify/tests/outputs/attr.rs b/cargo-typify/tests/outputs/attr.rs index 401f354f..bae2d959 100644 --- a/cargo-typify/tests/outputs/attr.rs +++ b/cargo-typify/tests/outputs/attr.rs @@ -59,11 +59,6 @@ impl ::std::convert::From value.0 } } -impl ::std::convert::From<&Fruit> for Fruit { - fn from(value: &Fruit) -> Self { - value.clone() - } -} impl ::std::convert::From<::std::collections::HashMap<::std::string::String, ::std::string::String>> for Fruit { @@ -107,11 +102,6 @@ pub enum FruitOrVeg { Veg(Veggie), Fruit(Fruit), } -impl ::std::convert::From<&Self> for FruitOrVeg { - fn from(value: &FruitOrVeg) -> Self { - value.clone() - } -} impl ::std::convert::From for FruitOrVeg { fn from(value: Veggie) -> Self { Self::Veg(value) @@ -156,11 +146,6 @@ pub struct Veggie { #[serde(rename = "veggieName")] pub veggie_name: ::std::string::String, } -impl ::std::convert::From<&Veggie> for Veggie { - fn from(value: &Veggie) -> Self { - value.clone() - } -} #[doc = "A representation of a person, company, organization, or place"] #[doc = r""] #[doc = r"
JSON schema"] @@ -196,11 +181,6 @@ pub struct Veggies { #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } -impl ::std::convert::From<&Veggies> for Veggies { - fn from(value: &Veggies) -> Self { - value.clone() - } -} impl ::std::default::Default for Veggies { fn default() -> Self { Self {