16 Commits

Author SHA1 Message Date
Jonas Platte
cb857db71e
Fix tests, some refactoring 2020-04-17 12:28:58 +02:00
Jonas Platte
e8f7bd9f6d
Restore server name validation 2020-04-17 12:06:40 +02:00
Jonas Platte
3945f88e10
New representation for identifiers
Identifiers now always own just a single allocation, and implement AsRef<str>.
PartialOrd and Ord implementations were also added at the same time. All
identifiers except RoomVersionId can now also be converted to String without
allocation.
2020-04-15 13:54:31 +02:00
Marcel
81fb260a46
Add support for historical uppercase user IDs 2020-02-17 09:31:46 +01:00
Jonas Platte
2a0414cd60
Remove unnecessary explicit lifetimes 2019-12-15 20:39:03 +01:00
Jonas Platte
f21f4b4733
Replace .err().unwrap() with .unwrap_err() 2019-12-14 16:00:11 +01:00
Jonas Platte
d19d9c054f
Support historical user IDs 2019-12-14 15:58:23 +01:00
Jonas Platte
32733cf782
Further simplify deserialization 2019-12-10 22:42:46 +01:00
Jonas Platte
d120f77635
Simplify deserialization 2019-12-10 11:54:09 +01:00
Jonas Platte
11841f91b8
Remove regex, once_cell deps 2019-12-10 11:41:30 +01:00
Jonas Platte
7fa1407d76
Update set of allowed characters in UserId localpart 2019-12-09 17:43:15 +01:00
Jonas Platte
f994672db5 Replace lazy_static with once_cell 2019-10-31 22:55:24 +01:00
Jonas Platte
26068c462d Remove unneeded clones 2019-10-31 22:33:12 +01:00
Jonas Platte
4bafdb1ed7 Change invalid host tests from '-' to '/' 2019-07-23 21:34:42 +02:00
Jimmy Cuadra
9011423eea Consistently use localpart instead of opaque_id and use homeserver_host instead of server_name. 2019-06-03 12:11:57 -07:00
Jimmy Cuadra
44de3bcb4d Move each type into its own module. 2019-06-03 09:00:04 -07:00