Skip to content

Commit

Permalink
Remove unnecessary new impl
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed May 10, 2020
1 parent bfc4c81 commit b517b90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ impl StdError for Error {
}
}

#[doc(hidden)]
impl From<std::convert::Infallible> for Error {
fn from(error: std::convert::Infallible) -> Error {
error.into()
}
}

#[doc(hidden)]
impl From<curl::Error> for Error {
fn from(error: curl::Error) -> Error {
Expand Down
3 changes: 1 addition & 2 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ pub(crate) fn parse_status_line(line: &[u8]) -> Option<(Version, StatusCode)> {
};

let status_code = parts
.skip_while(|s| s.is_empty())
.next()
.find(|s| !s.is_empty())
.map(StatusCode::from_bytes)?
.ok()?;

Expand Down

0 comments on commit b517b90

Please sign in to comment.