chore(sdk): Rename SlidingSyncRoom pub(crate) from to pub(super) new.

First off, `SlidingSyncRoom.from` doesn't need to be visible to the entire
crate, only to `crate::sliding_sync.

Second, it's a constructor, so let's call it `new`.
This commit is contained in:
Ivan Enderlin
2023-02-22 17:45:59 +01:00
parent 1d02515186
commit 56daa6cb8f
2 changed files with 2 additions and 2 deletions

View File

@@ -1005,7 +1005,7 @@ impl SlidingSync {
rooms_map.insert(
id.clone(),
SlidingSyncRoom::from(self.client.clone(), id.clone(), room_data, timeline),
SlidingSyncRoom::new(self.client.clone(), id.clone(), room_data, timeline),
);
}

View File

@@ -49,7 +49,7 @@ impl SlidingSyncRoom {
}
}
pub(crate) fn from(
pub(super) fn new(
client: Client,
room_id: OwnedRoomId,
mut inner: v4::SlidingSyncRoom,