Skip to content

Commit

Permalink
Add ShardingCodecBuilder::build_arc()
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Nov 10, 2024
1 parent bf947b0 commit 6ccdb66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `with_` methods to `{Array,Group}MetadataOptions`
- Add `zarr_v2_to_v3` example
- Add `{Array,Group}::to_v3()`
- Add `ShardingCodecBuilder::build_arc()`

### Changed
- Bump `unsafe_cell_slice` to 0.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,10 @@ impl ShardingCodecBuilder {
self.index_location,
)
}

/// Build into an [`Arc<ShardingCodec>`].
#[must_use]
pub fn build_arc(&self) -> Arc<ShardingCodec> {
Arc::new(self.build())
}
}

0 comments on commit 6ccdb66

Please sign in to comment.