diff options
author | Haibo Huang <hhb@google.com> | 2020-07-27 09:15:10 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2020-07-27 12:25:28 -0700 |
commit | c9e44565a7c05c4325d8de85598fc4ecded70d58 (patch) | |
tree | 8dda06cd32bb36663b6e07187b5a8e8d65660422 /src | |
parent | d58366dc4a1a1ec807bb02dfc7928051799130ac (diff) | |
download | pin-project-c9e44565a7c05c4325d8de85598fc4ecded70d58.tar.gz |
Upgrade rust/crates/pin-project to 0.4.23
* Keep local change in src/lib.rs:
// ANDROID: Use std to allow building as a dylib.
Test: make
Change-Id: I5d5a43c5ad9e42c7ecaeb163bc9a25da2ab233a4
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -36,7 +36,7 @@ //! [struct-default-expanded]: https://github.com/taiki-e/pin-project/blob/master/examples/struct-default-expanded.rs #![no_std] -#![doc(html_root_url = "https://docs.rs/pin-project/0.4.22")] +#![doc(html_root_url = "https://docs.rs/pin-project/0.4.23")] #![doc(test( no_crate_inject, attr(deny(warnings, rust_2018_idioms, single_use_lifetimes), allow(dead_code)) @@ -46,8 +46,6 @@ // mem::take and #[non_exhaustive] requires Rust 1.40 #![allow(clippy::mem_replace_with_default, clippy::manual_non_exhaustive)] #![allow(clippy::needless_doctest_main)] -// https://github.com/rust-lang/rust-clippy/issues/5704 -#![allow(clippy::unnested_or_patterns)] // ANDROID: Use std to allow building as a dylib. extern crate std; @@ -227,7 +225,7 @@ pub mod __private { #[doc(hidden)] pub struct AlwaysUnpin<'a, T: ?Sized>(PhantomData<&'a ()>, PhantomData<T>); - impl<T: ?Sized> Unpin for AlwaysUnpin<'_, T> {} + impl<T> Unpin for AlwaysUnpin<'_, T> {} // This is an internal helper used to ensure a value is dropped. #[doc(hidden)] |