matrix-org / matrix-rust-sdk

Matrix Client-Server SDK for Rust
Apache License 2.0
1.26k stars 252 forks source link

chore(sdk): A bit of code moving in `event_cache` #4178

Closed Hywan closed 2 weeks ago

Hywan commented 2 weeks ago

This patch renames event_cache/store.rs to event_cache/room/events.rs, and extract types about RoomEventCache from event_cache/mod.rs to event_cache/room/mod.rs. I hope it clarifies things.

It's purely code moves, no renaming, no other changes.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 91.16022% with 16 lines in your changes missing coverage. Please review.

Project coverage is 84.79%. Comparing base (77b3aa8) to head (b775df2). Report is 27 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/event_cache/room/mod.rs 91.16% 16 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #4178 +/- ## ========================================== - Coverage 84.82% 84.79% -0.04% ========================================== Files 269 270 +1 Lines 28963 28961 -2 ========================================== - Hits 24569 24558 -11 - Misses 4394 4403 +9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Hywan commented 2 weeks ago

Indeed! Tests have been moved accordingly.