Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Sep 30, 2024
1 parent 79989c1 commit 0e6bcda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/http-std/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl FromStr for Method {
"GET" => Ok(Method::Get),
"POST" => Ok(Method::Post),
"PUT" => Ok(Method::Put),
_ => return Err(Error::Parameter(format!("unknown method {}", s))),
_ => Err(Error::Parameter(format!("unknown method {}", s))),
}
}
}
4 changes: 1 addition & 3 deletions crates/http-std/src/default_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ impl Client for DefaultClient {
"{} {} HTTP/1.1\r\n\
Host: {}\r\n\
Connection: close\r\n",
method.to_string(),
destination.path,
destination.host,
method, destination.path, destination.host,
);
if let Some(headers) = &options.headers {
if !headers.is_empty() {
Expand Down

0 comments on commit 0e6bcda

Please sign in to comment.