feat: Derive PartialEq and Eq for RoomListLoadingState

This commit is contained in:
Damir Jelić
2024-12-17 14:00:23 +01:00
parent bd15f4ecbe
commit daeffc07b3

View File

@@ -254,7 +254,7 @@ fn merge_stream_and_receiver(
/// When a [`RoomList`] is displayed to the user, it can be in various states.
/// This enum tries to represent those states with a correct level of
/// abstraction.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum RoomListLoadingState {
/// The [`RoomList`] has not been loaded yet, i.e. a sync might run
/// or not run at all, there is nothing to show in this `RoomList` yet.