We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d521d commit a9561cdCopy full SHA for a9561cd
gix-url/tests/baseline/main.rs
@@ -62,7 +62,7 @@ fn assert_urls_equal(expected: &baseline::GitDiagUrl<'_>, actual: &gix_url::Url)
62
63
match expected.host {
64
baseline::GitDiagHost::NonSsh { host_and_port } => match host_and_port {
65
- Some(host_and_port) => {
+ Some(host_and_port) if !host_and_port.is_empty() => {
66
assert!(actual.host().is_some());
67
68
let mut gix_host_and_port = String::with_capacity(host_and_port.len());
@@ -81,7 +81,7 @@ fn assert_urls_equal(expected: &baseline::GitDiagUrl<'_>, actual: &gix_url::Url)
81
82
assert_eq!(host_and_port, gix_host_and_port);
83
}
84
- None => {
+ _ => {
85
assert!(actual.host().is_none());
86
assert!(actual.port.is_none());
87
0 commit comments