Skip to content

Commit 4590a92

Browse files
committed
lib: annotate CursorIcon with non_exhaustive
This should ensure future compatibility.
1 parent 1884b2c commit 4590a92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ extern crate serde;
8989
///
9090
/// The names are taken from the CSS W3C specification:
9191
/// <https://www.w3.org/TR/css-ui-3/#cursor>
92+
#[non_exhaustive]
9293
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Hash)]
9394
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
9495
pub enum CursorIcon {

0 commit comments

Comments
 (0)