With the release of v0.1.9 the generated code uses Rust 2018 idioms. However, duplexifysets #[forbid(rust_2018_idioms)]. This results in duplexify failing to build with
error[E0453]: allow(explicit_outlives_requirements) overruled by outer forbid(rust_2018_idioms)
--> /home/.cargo/registry/src/github.com-1ecc6299db9ec823/duplexify-1.2.1/src/lib.rs:42:1
|
34 | #![forbid(unsafe_code, rust_2018_idioms)]
| ---------------- `forbid` level set here
...
42 | / pin_project_lite::pin_project! {
43 | | /// Combine a reader + writer into a duplex of `Read` + `Write`.
44 | | #[derive(Debug)]
45 | | pub struct Duplex<R, W> {
... |
50 | | }
51 | | }
| |_^ overruled by previous forbid
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
For more information about this error, try `rustc --explain E0453`.
error: could not compile `duplexify`.
I’m not sure where to best address this—here or in duplexify. Since there’s a chance that this breaks other packages, too, it might preferable to fix this here.
With the release of
v0.1.9
the generated code uses Rust 2018 idioms. However,duplexify
sets#[forbid(rust_2018_idioms)]
. This results induplexify
failing to build withSee https://github.com/async-rs/duplexify/issues/5
I’m not sure where to best address this—here or in
duplexify
. Since there’s a chance that this breaks other packages, too, it might preferable to fix this here.