[http-client/style] Use single-char string constants as patterns.
@@ -208,7 +208,7 @@ impl ApiClient {
return url;
}
- if url.path().ends_with("/") || path.starts_with("/") {
+ if url.path().ends_with('/') || path.starts_with('/') {
url.set_path(&format!("{}{}", self.endpoint.path(), path));
} else {
url.set_path(&format!("{}/{}", self.endpoint.path(), path));
