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 bb8673e commit b7229b6Copy full SHA for b7229b6
src/gleam/uri.gleam
@@ -100,18 +100,7 @@ pub fn parse(uri_string: String) -> Result(Uri, Nil) {
100
// TODO: This is not perfect and will be more permissive than its Erlang
101
// counterpart, ideally we want to replicate Erlang's implementation on the js
102
// target as well.
103
- let default_pieces =
104
- Uri(
105
- scheme: None,
106
- userinfo: None,
107
- host: None,
108
- port: None,
109
- path: "",
110
- query: None,
111
- fragment: None,
112
- )
113
-
114
- parse_scheme_loop(uri_string, uri_string, default_pieces, 0)
+ parse_scheme_loop(uri_string, uri_string, empty, 0)
115
}
116
117
fn parse_scheme_loop(
0 commit comments