Skip to content

Commit 45d2e18

Browse files
authored
Make BreakReason public (#300)
The `break_reason` accessor was public, but `BreakReason` was not, so nothing could be done with the accessor.
1 parent 4307d3f commit 45d2e18

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

parley/src/layout/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ use alignment::unjustify;
2323
#[cfg(feature = "accesskit")]
2424
use alloc::vec::Vec;
2525
use core::{cmp::Ordering, ops::Range};
26-
use data::{
27-
BreakReason, ClusterData, LayoutData, LayoutItem, LayoutItemKind, LineData, LineItemData,
28-
RunData,
29-
};
26+
use data::{ClusterData, LayoutData, LayoutItem, LayoutItemKind, LineData, LineItemData, RunData};
3027
#[cfg(feature = "accesskit")]
3128
use hashbrown::{HashMap, HashSet};
3229
use swash::text::cluster::{Boundary, ClusterInfo};
@@ -35,6 +32,7 @@ use swash::{GlyphId, NormalizedCoord, Synthesis};
3532
pub use alignment::AlignmentOptions;
3633
pub use cluster::{Affinity, ClusterPath, ClusterSide};
3734
pub use cursor::{Cursor, Selection};
35+
pub use data::BreakReason;
3836
pub use line::greedy::BreakLines;
3937
pub use line::{GlyphRun, LineMetrics, PositionedInlineBox, PositionedLayoutItem};
4038
pub use run::RunMetrics;

parley/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
#![allow(missing_docs, reason = "We have many as-yet undocumented items.")]
8585
#![expect(
8686
missing_debug_implementations,
87-
unnameable_types,
8887
clippy::allow_attributes_without_reason,
8988
clippy::cast_possible_truncation,
9089
clippy::missing_assert_message,

0 commit comments

Comments
 (0)