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 66050bb commit 9acda2fCopy full SHA for 9acda2f
src/lib.rs
@@ -504,18 +504,16 @@ impl std::fmt::Debug for Url {
504
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
505
unsafe {
506
let components = ffi::ada_get_components(self.url).as_ref().unwrap();
507
-
508
let mut debug = f.debug_struct("Url");
509
510
debug
511
.field("href", &self.href())
512
.field("protocol_end", &components.protocol_end)
513
.field("host_start", &components.host_start)
514
.field("host_end", &components.host_end);
515
let port = if components.port == u32::MAX {
516
- Some(components.port)
517
- } else {
518
None
+ } else {
+ Some(components.port)
519
};
520
let username_end = if components.username_end == u32::MAX {
521
0 commit comments