taiki-e / pin-project

A crate for safe and ergonomic pin-projection.

Home Page:https://docs.rs/pin-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"unused result" warning with 0.4.18

alecmocatta opened this issue · comments

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

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

Thanks for the swift fix @taiki-e!