Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(lib): resolve unused import #2889

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

Ticsmtc
Copy link
Contributor

@Ticsmtc Ticsmtc commented Jun 6, 2022

running default build command

cargo build

reports

warning: unused import: `http::header::HeaderName`
 --> src/ext.rs:4:5
  |
4 | use http::header::HeaderName;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

@Ticsmtc
Copy link
Contributor Author

Ticsmtc commented Jun 6, 2022

cargo build --release 

reports

warning: variant is never constructed: `Internal`
  --> src/error.rs:78:5
   |
78 |     Internal,
   |     ^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

src/error.rs Outdated Show resolved Hide resolved
Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :D

@seanmonstar seanmonstar merged commit f12d4d4 into hyperium:master Jun 7, 2022
bors referenced this pull request in rust-lang/crates.io Jul 7, 2022
Update Rust crate hyper to v0.14.20

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [hyper](https://hyper.rs) ([source](https://github.com/hyperium/hyper)) | dependencies | patch | `=0.14.19` -> `=0.14.20` |

---

### Release Notes

<details>
<summary>hyperium/hyper</summary>

### [`v0.14.20`](https://github.com/hyperium/hyper/releases/tag/v0.14.20)

[Compare Source](https://github.com/hyperium/hyper/compare/v0.14.19...v0.14.20)

##### Bug Fixes

-   **http1:** fix `http1_header_read_timeout` to use same future ([#&#8203;2891](https://github.com/hyperium/hyper/issues/2891)) ([c5a14e7c](https://github.com/hyperium/hyper/commit/c5a14e7c087424001223aaeb2dad532ba4ee6063))

##### Features

-   **ext:** support non-canonical HTTP/1 reason phrases ([#&#8203;2792](https://github.com/hyperium/hyper/issues/2792)) ([b2052a43](https://github.com/hyperium/hyper/commit/b2052a433fd151d7d745ee9c5b27a2031db1dc32))

##### New Contributors

-   [`@&#8203;kianmeng](https://github.com/kianmeng)` made their first contribution in [https://github.com/hyperium/hyper/pull/2876](https://github.com/hyperium/hyper/pull/2876)
-   [`@&#8203;Ticsmtc](https://github.com/Ticsmtc)` made their first contribution in [https://github.com/hyperium/hyper/pull/2889](https://github.com/hyperium/hyper/pull/2889)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/rust-lang/crates.io).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants