Jonas Platte
e1975c2035
Be more consistent about whitespace
2020-10-24 00:44:01 +02:00
Jonas Platte
22ec1710b5
Update ruma-identifiers validation logic
...
* Allow empty localparts
* Simplify some code
2020-09-21 22:34:56 +02:00
Jonas Platte
1881e45eee
Move ruma-identifiers validation logic into a new crate
2020-08-04 23:23:39 +02:00
Jonas Platte
05a99a00a0
Only use matches crate as a dev-dependency
2020-07-22 23:06:35 +02:00
Jonas Platte
c2ea1493cb
identifiers: Use .as_ref()
less
2020-07-20 16:33:29 +02:00
Jonas Platte
7cfec8631a
Use the matches! macro in more places
2020-07-15 15:51:09 +02:00
Jonas Platte
a3e5d679a1
Revert making identifier types generic over the underlying string type
...
At the same time, this commit makes `ServerName` a newtype around str so
other identifier types can borrow out their server name part as a
`&ServerName`. This technique works for `ServerName` because it keeps no
additional metadata. For the other identifier types to support being
created in borrowed form from a string slice, custom DSTs first have to
be added to Rust.
2020-07-14 23:02:51 +02:00
Jonas Platte
046668466c
identifiers: Add more conversion functions
2020-06-18 12:11:52 +02:00
iinuwa
f8492db766
Add ServerName identifier
2020-06-18 11:21:00 +02:00
Jonas Platte
abf8eafe0e
Rerun cargo fmt
2020-06-07 17:22:20 +02:00
Jonas Platte
83de77f002
Add 'ruma-identifiers/' from commit 'c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d'
...
git-subtree-dir: ruma-identifiers
git-subtree-mainline: 19ce9645b6651e4de42ddf9e81ee50e19c8c0f26
git-subtree-split: c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d
2020-06-07 17:06:45 +02:00