diff mbox

clippy warnings: use of assert_eq!()

Message ID 20170323014850.2414-1-andrew.donnellan@au1.ibm.com
State Accepted
Headers show

Commit Message

Andrew Donnellan March 23, 2017, 1:48 a.m. UTC
Change a couple of assert!()s to assert_eq!() for additional clarity.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>

---

Applied to master: c869d952f69e813eb035fa2a7a1672703444008e

---
 src/main.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/src/main.rs b/src/main.rs
index 7941a90..6ba550e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -277,9 +277,9 @@  fn main() {
                 panic!("http_proxy is malformed: {:?}, error: {}", proxy_url, e);
             });
             assert!(proxy.has_host());
-            assert!(proxy.scheme() == "http");
+            assert_eq!(proxy.scheme(), "http");
             // This should pass even if no trailing slash is in http_proxy
-            assert!(proxy.path() == "/");
+            assert_eq!(proxy.path(), "/");
             let proxy_config = ProxyConfig::new(proxy.scheme(),
                                                 proxy.host_str().unwrap().to_string(),
                                                 proxy.port().unwrap_or(80),