Skip to content

Commit 61c52f9

Browse files
committed
Add lint TODO for non-exhaustive enum
Signed-off-by: Kévin Commaille <[email protected]>
1 parent ae24efd commit 61c52f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/matrix-sdk/src/room/member.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ impl RoomMemberRole {
131131
Self::User
132132
}
133133
}
134+
// This branch is only necessary because the enum is non-exhaustive.
135+
// TODO: Use the `non_exhaustive_omitted_patterns` lint when it becomes stable to be
136+
// warned when a variant is added.
137+
// Tracking issue: https://github.com/rust-lang/rust/issues/89554
134138
_ => unimplemented!(),
135139
}
136140
}

0 commit comments

Comments
 (0)