diff --git a/impl/src/prop.rs b/impl/src/prop.rs index 56b6108..a024833 100644 --- a/impl/src/prop.rs +++ b/impl/src/prop.rs @@ -45,7 +45,7 @@ impl Variant<'_> { fn source_field<'a, 'b>(fields: &'a [Field<'b>]) -> Option<&'a Field<'b>> { for field in fields { - if field.attrs.source.is_some() { + if field.attrs.from.is_some() || field.attrs.source.is_some() { return Some(&field); } }