Skip to content

chore: Extract RecordField related structs to src/schema/record/field.rs - #409

Merged
martin-g merged 3 commits into
mainfrom
extract_record_field_in_its_own_module
Jan 19, 2026
Merged

martin-g merged 3 commits into
mainfrom
extract_record_field_in_its_own_module

Conversation

@martin-g

Copy link
Copy Markdown
Member

No other functional changes!

@Kriskras99 Kriskras99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also do this:

schema
├── mod.rs
└── record
    ├── mod.rs
    └── field.rs

Then we have everything relevant to Record separated in a module.

Comment thread avro/src/schema/mod.rs Resolved
@martin-g

Copy link
Copy Markdown
Member Author

We could also do this:

schema
├── mod.rs
└── record
    ├── mod.rs
    └── field.rs

Then we have everything relevant to Record separated in a module.

Thanks!
Now there is a warning related to the RecordField::parse() method and its usage of the Parser struct.
I guess it will fail the CI checks. My only solution is to make the Parser pub(crate) too

@Kriskras99

Copy link
Copy Markdown
Contributor

Making Parser pub(crate) is fine

@martin-g
martin-g merged commit 8f5089d into main Jan 19, 2026
@martin-g
martin-g deleted the extract_record_field_in_its_own_module branch January 19, 2026 08:19
@martin-g martin-g changed the title chore: Extract RecordField related structs to src/schema/record_field.rs chore: Extract RecordField related structs to src/schema/record/field.rs Jan 19, 2026
@martin-g martin-g added this to the 0.22.0 milestone Jan 19, 2026
@Kriskras99 Kriskras99 mentioned this pull request Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants