diff --git a/Cargo.toml b/Cargo.toml index d4717b8b..8ca08ff2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,10 +14,10 @@ edition = "2018" [dependencies] lazy_static = "1.3.0" -rand = "0.6.5" -regex = "1.1.5" +rand = "0.7.0" +regex = "1.2.0" serde = "1.0.90" -url = "1.7.2" +url = "2.0.0" [dependencies.diesel] optional = true diff --git a/src/event_id.rs b/src/event_id.rs index 606e68c2..022449f9 100644 --- a/src/event_id.rs +++ b/src/event_id.rs @@ -376,7 +376,7 @@ mod tests { #[test] fn invalid_event_id_host() { assert_eq!( - EventId::try_from("$39hvsi03hlne:-").err().unwrap(), + EventId::try_from("$39hvsi03hlne:/").err().unwrap(), Error::InvalidHost ); } diff --git a/src/room_alias_id.rs b/src/room_alias_id.rs index 1d6c1de4..52cd06f4 100644 --- a/src/room_alias_id.rs +++ b/src/room_alias_id.rs @@ -213,7 +213,7 @@ mod tests { #[test] fn invalid_room_alias_id_host() { assert_eq!( - RoomAliasId::try_from("#ruma:-").err().unwrap(), + RoomAliasId::try_from("#ruma:/").err().unwrap(), Error::InvalidHost ); } diff --git a/src/room_id.rs b/src/room_id.rs index 8aec0959..c28dbe05 100644 --- a/src/room_id.rs +++ b/src/room_id.rs @@ -231,7 +231,7 @@ mod tests { #[test] fn invalid_room_id_host() { assert_eq!( - RoomId::try_from("!29fhd83h92h0:-").err().unwrap(), + RoomId::try_from("!29fhd83h92h0:/").err().unwrap(), Error::InvalidHost ); } diff --git a/src/user_id.rs b/src/user_id.rs index 140341ce..5297ae79 100644 --- a/src/user_id.rs +++ b/src/user_id.rs @@ -262,7 +262,7 @@ mod tests { #[test] fn invalid_user_id_host() { assert_eq!( - UserId::try_from("@carl:-").err().unwrap(), + UserId::try_from("@carl:/").err().unwrap(), Error::InvalidHost ); }