Skip to content

Commit 3e5d02d

Browse files
committed
remove __Incomplete ErrorKind due to using #[non_exhaustive]
1 parent f9b8286 commit 3e5d02d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/error.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ pub enum ErrorKind {
4848
Unsupported,
4949
/// overflow when computing offset, length, etc.
5050
Overflow,
51-
#[doc(hidden)]
52-
__Incomplete,
5351
}
5452

5553
#[inline(always)]
@@ -82,7 +80,6 @@ impl fmt::Display for ShapeError {
8280
ErrorKind::OutOfBounds => "out of bounds indexing",
8381
ErrorKind::Unsupported => "unsupported operation",
8482
ErrorKind::Overflow => "arithmetic overflow",
85-
ErrorKind::__Incomplete => "this error variant is not in use",
8683
};
8784
write!(f, "ShapeError/{:?}: {}", self.kind(), description)
8885
}

0 commit comments

Comments
 (0)