You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let api_url = ApiUrl::parse("http://127.0.0.1/leader").expect("It is a valid API URL");
215
214
216
-
let expected = url::Url::parse("http://127.0.0.1/leader/endpoint?query=query value").expect("it is a valid Url");
215
+
let expected = url::Url::parse("http://127.0.0.1/leader/endpoint?query=query value")
216
+
.expect("it is a valid Url");
217
217
let expected_url_encoded = "http://127.0.0.1/leader/endpoint?query=query%20value";
218
218
219
-
let actual = api_url.join("endpoint?query=query value").expect("Should join endpoint");
220
-
let actual_should_strip_suffix = api_url.join("/endpoint?query=query value").expect("Should join endpoint and strip `/` suffix and preserve the original ApiUrl");
219
+
let actual = api_url
220
+
.join("endpoint?query=query value")
221
+
.expect("Should join endpoint");
222
+
let actual_should_strip_suffix = api_url
223
+
.join("/endpoint?query=query value")
224
+
.expect("Should join endpoint and strip `/` suffix and preserve the original ApiUrl");
0 commit comments