We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2eed77 commit 4e34662Copy full SHA for 4e34662
crates/stackable-versioned-macros/src/codegen/item/field.rs
@@ -24,11 +24,14 @@ pub(crate) struct VersionedField {
24
25
impl VersionedField {
26
pub(crate) fn new(field: Field, versions: &[VersionDefinition]) -> Result<Self> {
27
- // TODO (@Techassi): Remove unwrap
28
let field_attributes = FieldAttributes::from_field(&field)?;
29
field_attributes.validate_versions(versions)?;
30
31
- let field_ident = FieldIdent::from(field.ident.unwrap());
+ let field_ident = FieldIdent::from(
+ field
32
+ .ident
33
+ .expect("internal error: field must have an ident"),
34
+ );
35
let changes = field_attributes
36
.common
37
.into_changeset(&field_ident, field.ty.clone());
0 commit comments