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

"unused result" warning with 0.4.18 #238

Closed
alecmocatta opened this issue Jun 4, 2020 · 2 comments · Fixed by #239
Closed

"unused result" warning with 0.4.18 #238

alecmocatta opened this issue Jun 4, 2020 · 2 comments · Fixed by #239
Assignees
Labels
A-pin-projection Area: #[pin_project] C-bug Category: related to a bug.

Comments

@alecmocatta
Copy link
Contributor

alecmocatta commented Jun 4, 2020

I just updated from 0.4.17 to 0.4.18 and I now receive the following warning:

#![warn(unused_results)]

use pin_project::pin_project;

#[pin_project]
pub struct Wrapper<T> {
    #[pin]
    t: T,
}
warning: unused result
  --> src/lib.rs:83:3
   |
83 |           #[pin]
   |  _________^
84 | |         t: T,
   | |____________^

warning: unused result
  --> src/lib.rs:83:3
   |
83 |           #[pin]
   |  _________^
84 | |         t: T,
   | |____________^

rustc: nightly-2020-06-04

@taiki-e taiki-e added the C-bug Category: related to a bug. label Jun 4, 2020
@taiki-e taiki-e self-assigned this Jun 4, 2020
@taiki-e taiki-e added the A-pin-projection Area: #[pin_project] label Jun 4, 2020
bors bot added a commit that referenced this issue Jun 4, 2020
239: Fix unused_results lint in generated code r=taiki-e a=taiki-e

Fixes #238

Co-authored-by: Taiki Endo <te316e89@gmail.com>
@bors bors bot closed this as completed in ee3f9c5 Jun 4, 2020
@bors bors bot closed this as completed in #239 Jun 4, 2020
@taiki-e
Copy link
Owner

taiki-e commented Jun 4, 2020

Published 0.4.19 which fixes this issue, thanks @alecmocatta for the reporting!

@alecmocatta
Copy link
Contributor Author

Thanks for the swift fix @taiki-e!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pin-projection Area: #[pin_project] C-bug Category: related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants