Merge pull request #10 from ruma/update-deps

Update deps
This commit is contained in:
Jimmy Cuadra 2019-07-24 10:09:54 -07:00 committed by GitHub
commit b627ae9311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -14,10 +14,10 @@ edition = "2018"
[dependencies] [dependencies]
lazy_static = "1.3.0" lazy_static = "1.3.0"
rand = "0.6.5" rand = "0.7.0"
regex = "1.1.5" regex = "1.2.0"
serde = "1.0.90" serde = "1.0.90"
url = "1.7.2" url = "2.0.0"
[dependencies.diesel] [dependencies.diesel]
optional = true optional = true

View File

@ -376,7 +376,7 @@ mod tests {
#[test] #[test]
fn invalid_event_id_host() { fn invalid_event_id_host() {
assert_eq!( assert_eq!(
EventId::try_from("$39hvsi03hlne:-").err().unwrap(), EventId::try_from("$39hvsi03hlne:/").err().unwrap(),
Error::InvalidHost Error::InvalidHost
); );
} }

View File

@ -213,7 +213,7 @@ mod tests {
#[test] #[test]
fn invalid_room_alias_id_host() { fn invalid_room_alias_id_host() {
assert_eq!( assert_eq!(
RoomAliasId::try_from("#ruma:-").err().unwrap(), RoomAliasId::try_from("#ruma:/").err().unwrap(),
Error::InvalidHost Error::InvalidHost
); );
} }

View File

@ -231,7 +231,7 @@ mod tests {
#[test] #[test]
fn invalid_room_id_host() { fn invalid_room_id_host() {
assert_eq!( assert_eq!(
RoomId::try_from("!29fhd83h92h0:-").err().unwrap(), RoomId::try_from("!29fhd83h92h0:/").err().unwrap(),
Error::InvalidHost Error::InvalidHost
); );
} }

View File

@ -262,7 +262,7 @@ mod tests {
#[test] #[test]
fn invalid_user_id_host() { fn invalid_user_id_host() {
assert_eq!( assert_eq!(
UserId::try_from("@carl:-").err().unwrap(), UserId::try_from("@carl:/").err().unwrap(),
Error::InvalidHost Error::InvalidHost
); );
} }