Skip to content

Commit 632ab83

Browse files
ref(api): Remove dead code (#2217)
This dead code caused a CI linter failure in `master`. Likely, we did not update #2212 with the changes from #2213 before merging.
1 parent a3ef685 commit 632ab83

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/api/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ impl fmt::Display for Method {
108108
/// Represents an API request. This can be customized before
109109
/// sending but only sent once.
110110
pub struct ApiRequest {
111-
url: String,
112111
handle: r2d2::PooledConnection<CurlConnectionManager>,
113112
headers: curl::easy::List,
114113
is_authenticated: bool,
@@ -121,7 +120,6 @@ pub struct ApiRequest {
121120
/// Represents an API response.
122121
#[derive(Clone, Debug)]
123122
pub struct ApiResponse {
124-
url: String,
125123
status: u32,
126124
headers: Vec<String>,
127125
body: Option<Vec<u8>>,
@@ -1667,7 +1665,6 @@ impl ApiRequest {
16671665
handle.url(url)?;
16681666

16691667
let request = ApiRequest {
1670-
url: url.to_owned(),
16711668
handle,
16721669
headers,
16731670
is_authenticated: false,
@@ -1774,12 +1771,10 @@ impl ApiRequest {
17741771
let headers = self.get_headers();
17751772
self.handle.http_headers(headers)?;
17761773
let body = self.body.as_deref();
1777-
let url = self.url.clone();
17781774
let (status, headers) =
17791775
send_req(&mut self.handle, out, body, self.progress_bar_mode.clone())?;
17801776
debug!("response status: {}", status);
17811777
Ok(ApiResponse {
1782-
url,
17831778
status,
17841779
headers,
17851780
body: None,

0 commit comments

Comments
 (0)