5 Commits

Author SHA1 Message Date
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
Jonas Platte
c20d52e2af
identifiers: Update DeviceKeyId::device_id to return a reference instead of cloning 2020-06-17 12:15:38 +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