From c91e5adad2c07d362d22b422263742fd3f4a4d33 Mon Sep 17 00:00:00 2001 From: yngrtc Date: Sat, 9 Mar 2024 08:03:55 -0800 Subject: [PATCH] fix rtc-ice/url_test.rs --- rtc-ice/Cargo.toml | 6 +++--- rtc-ice/src/url/mod.rs | 4 ++-- rtc-shared/src/error.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rtc-ice/Cargo.toml b/rtc-ice/Cargo.toml index 116add1..72cfe67 100644 --- a/rtc-ice/Cargo.toml +++ b/rtc-ice/Cargo.toml @@ -14,10 +14,10 @@ shared = { version = "0.1.1", path = "../rtc-shared", package = "rtc-shared", de stun = { version = "0.1.1", path = "../rtc-stun", package = "rtc-stun" } crc = "3.0" -log = "0.4.16" +log = "0.4.21" rand = "0.8.5" -serde = { version = "1.0.102", features = ["derive"] } -url = "2.2" +serde = { version = "1.0.197", features = ["derive"] } +url = "2.5" [dev-dependencies] regex = "1" diff --git a/rtc-ice/src/url/mod.rs b/rtc-ice/src/url/mod.rs index 724c77a..872e987 100644 --- a/rtc-ice/src/url/mod.rs +++ b/rtc-ice/src/url/mod.rs @@ -1,5 +1,5 @@ -//TODO: #[cfg(test)] -//TODO: mod url_test; +#[cfg(test)] +mod url_test; use std::borrow::Cow; use std::convert::From; diff --git a/rtc-shared/src/error.rs b/rtc-shared/src/error.rs index 52c59b1..133601a 100644 --- a/rtc-shared/src/error.rs +++ b/rtc-shared/src/error.rs @@ -547,7 +547,7 @@ pub enum Error { ErrInvalidQuery, /// Indicates malformed port is provided. - #[error("invalid port number")] + #[error("url parse: invalid port number")] ErrPort, /// Indicates local username fragment insufficient bits are provided. @@ -707,7 +707,7 @@ pub enum Error { ErrMismatchUsername, #[error("the ICE conn can't write STUN messages")] ErrIceWriteStunMessage, - #[error("relative URL without a base")] + #[error("url parse: relative URL without a base")] ErrUrlParse, #[error("Candidate IP could not be found")] ErrCandidateIpNotFound,