-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
choreMaintenance (audits, cleanup)Maintenance (audits, cleanup)
Milestone
Description
Background
Currently we call .into_inner() on nutype domain types when we need the wrapped primitive value. This is verbose and non-idiomatic. Rust's Into trait is the standard way to perform type conversions.
Changes
- Find all locations where
.into_inner()is called on nutype types - Implement
Into<T>for each nutype domain type (BatchSize, StreamPosition, StreamVersion, etc.) - Replace
.into_inner()calls with.into() - Ensure tests pass and code compiles
Example
// Current (verbose)
let size: usize = batch_size.into_inner();
// After (idiomatic)
let size: usize = batch_size.into();Acceptance Criteria
-
Into<T>implemented for all nutype domain types - All
.into_inner()calls replaced with.into() - Existing test suite passes unchanged
- More idiomatic Rust code
Migrated from beads issue: eventcore-4i0
Metadata
Metadata
Assignees
Labels
choreMaintenance (audits, cleanup)Maintenance (audits, cleanup)