Skip to content

Commit

Permalink
Mark BidiClassAdapter::new as const (#4584)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgskye authored Feb 5, 2024
1 parent 6b6f6df commit 2e188b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- `FormattedDateTime` and `FormattedZonedDateTime` now implement `Clone` and `Copy` (https://github.com/unicode-org/icu4x/pull/4476)
- `icu_properties`
- Add `Aran` script code (https://github.com/unicode-org/icu4x/pull/4426)
- Mark `BidiClassAdapter::new` as const (https://github.com/unicode-org/icu4x/pull/4584)
- `icu_segmenter`
- Fix Unicode 15.0 line breaking (https://github.com/unicode-org/icu4x/pull/4389)
- Data model and providers
Expand Down
2 changes: 1 addition & 1 deletion components/properties/src/bidi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub struct BidiClassAdapter<'a> {

impl<'a> BidiClassAdapter<'a> {
/// Creates new instance of `BidiClassAdapter`.
pub fn new(data: CodePointMapDataBorrowed<'a, BidiClass>) -> BidiClassAdapter<'a> {
pub const fn new(data: CodePointMapDataBorrowed<'a, BidiClass>) -> BidiClassAdapter<'a> {
BidiClassAdapter { data }
}
}
Expand Down

0 comments on commit 2e188b0

Please sign in to comment.