Skip to content

Commit 6a6719e

Browse files
committed
Fix unstable Builder::port_with_default
1 parent 16831db commit 6a6719e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl<R, S: To<PortEnd>> Builder<R, S> {
363363
/// [port]: https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.3
364364
#[cfg(fluent_uri_unstable)]
365365
pub fn port_with_default(self, port: u16, default: u16) -> Builder<R, PortEnd> {
366-
if port != default {
366+
if port == default {
367367
self.cast()
368368
} else {
369369
self.port(port)

0 commit comments

Comments
 (0)