18 Commits

Author SHA1 Message Date
Kévin Commaille
be376f5bd6
identifiers: Add MatrixUri for matrix scheme URIs 2022-02-19 14:09:43 +01:00
Kévin Commaille
02008ac6e9
identifiers: Add links to the spec for identifiers 2022-02-19 12:38:24 +01:00
Kévin Commaille
384d48baaa
identifiers: Rename matrix_to_url methods to matrix_to_uri
To be consistent in the naming
2022-02-19 11:39:25 +01:00
Kévin Commaille
1c23cd25b5 identifiers: Create MatrixId type for MatrixToUri 2022-02-18 19:11:26 +01:00
Kévin Commaille
52268b5dc2 identifiers: Rename MatrixToRef to matrix_uri::MatrixToUri 2022-02-18 19:11:26 +01:00
Jonas Platte
41d6bcc2a6
Format code in doc comments 2022-02-18 11:33:16 +01:00
Jonas Platte
4132c43cbb
identifiers: Remove runtime checks for server_name extraction 2021-11-26 17:43:02 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00
Jonas Platte
f448f6756e
identifiers: Derive PartialEq, Eq, PartialOrd, Ord, Hash for str newtypes
… instead of generating them in our own macro.
2021-11-26 00:40:44 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
1a87403ba2
Rewrite some Display & Debug implementations
To delete in a more obvious way and to include debug formatting for
Debug impls (i.e. enclose the string in quotes).
2021-11-18 19:49:40 +01:00
Jonas Platte
271491732e
Remove now-redundant doc(cfg) attributes
They are now implied:
https://github.com/rust-lang/rust/pull/89596
2021-10-08 11:52:18 +02:00
Jonas Platte
7cbffe35da
identifiers: Add matrix.to URL formatting 2021-09-23 21:12:57 +02:00
Jonas Platte
8b44f279c8
Use server_name! macro in tests 2021-09-23 20:33:45 +02:00
Jonas Platte
e147308277
identifiers: Improve readability of server_name methods 2021-09-23 18:54:03 +02:00
Jonas Platte
27a2e1f97f
identifiers: Merge more impl blocks 2021-09-23 18:50:09 +02:00
Devin Ragotzy
c6aa2e0428 Fix clippy warnings across workspace 2021-05-06 06:16:28 -04:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00