Skip to content

Commit f41b317

Browse files
committed
Make BinsBuildError enum non-exhaustive
Once the `#[non_exhaustive]` attribute is stable, we should replace the hidden enum variant with that attribute on the enum.
1 parent bca2dc9 commit f41b317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/histogram/errors.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ pub enum BinsBuildError {
2525
EmptyInput,
2626
/// The strategy for computing appropriate bins failed.
2727
Strategy,
28+
#[doc(hidden)]
29+
__NonExhaustive,
2830
}
2931

3032
impl BinsBuildError {

0 commit comments

Comments
 (0)