From 268c17e1a1f579b0e9fc42ecfdc5b27181f51532 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Thu, 23 Nov 2023 01:15:08 +0100 Subject: [PATCH] Fix test --- url/tests/unit.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/url/tests/unit.rs b/url/tests/unit.rs index a37acd5d8..d6f175c76 100644 --- a/url/tests/unit.rs +++ b/url/tests/unit.rs @@ -41,7 +41,7 @@ use alloc::string::{String, ToString}; use alloc::vec::Vec; use core::cell::{Cell, RefCell}; #[cfg(feature = "std")] -use std::path::{Path, PathBuf}; +use std::{dbg, path::{Path, PathBuf}}; use url::{form_urlencoded, Host, Origin, Url}; /// `std` version of `net` @@ -1364,6 +1364,7 @@ fn test_file_with_drive_and_path() { assert_eq!(url2.to_string(), "file:///p:/a"); } +#[cfg(feature = "std")] #[test] fn issue_864() { let mut url = url::Url::parse("file://").unwrap();