Skip to content

Commit 947d663

Browse files
authored
Merge pull request #657 from djc/test-fixes
Fix broken serde tests, remove unused import
2 parents d4be4aa + 0b27b31 commit 947d663

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- uses: actions-rs/cargo@v1
4242
with:
4343
command: test
44+
args: --all-features
4445

4546
WASM:
4647
runs-on: ubuntu-latest

url/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ use crate::parser::{to_u32, Context, Parser, SchemeType, PATH_SEGMENT, USERINFO}
131131
use percent_encoding::{percent_decode, percent_encode, utf8_percent_encode};
132132
use std::borrow::Borrow;
133133
use std::cmp;
134-
#[cfg(feature = "serde")]
135-
use std::error::Error;
136134
use std::fmt::{self, Write};
137135
use std::hash;
138136
use std::io;

url/tests/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fn check_invariants(url: &Url, name: &str, comment: Option<&str>) -> bool {
144144
{
145145
let bytes = serde_json::to_vec(url).unwrap();
146146
let new_url: Url = serde_json::from_slice(&bytes).unwrap();
147-
passed &= test_eq(url, &new_url, name, comment);
147+
passed &= test_eq_eprint(url.to_string(), &new_url.to_string(), name, comment);
148148
}
149149

150150
passed

0 commit comments

Comments
 (0)