Jonas Platte
16f031fabb
state-res: Make the API generic over the event ID storage
2021-11-27 23:18:34 +01:00
Jonas Platte
9ed75241a6
state-res: Refactor lexicographical_topological_sort
...
Gets rid of unnecessary copying and makes things more explicit by using
a struct with named fields instead of a tuple for tie breaking.
Co-authored-by: Jonathan de Jong <jonathan@automatia.nl>
2021-11-26 20:22:57 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names
2021-11-26 01:07:26 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST
2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST
2021-11-25 22:34:40 +01:00
Devin Ragotzy
7fbfe59091
state-res: Minor fixes & doc updates
2021-11-15 23:08:12 +01:00
Jonas Platte
56801780b6
Fix clippy lints
2021-10-29 23:11:24 +02:00
Jonas Platte
04080085f9
events: Include all event type segments in Rust type names
2021-10-02 21:25:21 +02:00
Amanda Graven
3b5f3cb5a6
events: Move JoinRulesEventContent.allow into JoinRules
2021-09-28 13:39:58 +00:00
Jonas Platte
c6144c2299
state-res: Fix state-res tests
...
Before, they wouldn't compile with the unstable-exhaustive-types feature
active on ruma-state-res, but not on ruma-events.
2021-09-28 14:27:42 +02:00
Jonas Platte
69a97232b9
state-res: Clean up test code
2021-09-17 23:52:28 +02:00
Jonas Platte
a9985d7763
events / state-res: Use RawJsonValue over JsonValue for event content
2021-09-15 20:58:42 +02:00
Jonas Platte
9cb9b1104a
state-res: Remove unused Event trait methods
2021-09-15 18:15:01 +02:00
Jonas Platte
0999e420ae
state-res: Return borrowed content in Event method
2021-09-13 19:02:36 +02:00
Jonas Platte
889406b6c2
state-res: Make resolve more general by using impl IntoIterator for state_sets
2021-09-13 19:02:36 +02:00
Jonas Platte
3830dcddc2
state-res: Simplify tests a bit
2021-09-13 19:02:36 +02:00
Jonas Platte
717fd1198d
state-res: Remove unnecessary unwrap call
2021-09-13 19:02:36 +02:00
Jonas Platte
f0cd82dae7
state-res: Refactor test_utils
2021-09-13 19:02:36 +02:00
Jonas Platte
bc1e7eb1fc
state-res: Remove unused code from test_utils
2021-09-13 19:02:36 +02:00
Jonas Platte
0cd91ed61e
state-res: Don't import-rename crate root
2021-09-13 19:02:35 +02:00
Jonas Platte
1e19de9579
state-res: Return borrows from Event::{prev_events, auth_events}
2021-09-13 19:02:35 +02:00
Jonas Platte
34a10b87c5
state-res: Return borrows from Event::{event_type, state_key}
2021-09-13 19:02:35 +02:00
Jonas Platte
290c61820b
state-res: Remove unused function parameters
2021-09-13 19:02:35 +02:00
Jonas Platte
0a93780e83
state-res: Move tests/utils.rs to src/test_utils.rs
2021-09-13 19:02:34 +02:00