Skip to content

Commit c698a77

Browse files
authored
Use pin-project-lite (#5021)
Signed-off-by: Nicholas Gates <[email protected]>
1 parent ccc56eb commit c698a77

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ parking_lot = { version = "0.12.3", features = ["nightly"] }
149149
parquet = "56"
150150
paste = "1.0.15"
151151
pco = "0.4.4"
152-
pin-project = "1.1.5"
153152
pin-project-lite = "0.2.15"
154153
primitive-types = { version = "0.14.0" }
155154
prost = "0.14"

vortex-array/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ num-traits = { workspace = true }
4848
num_enum = { workspace = true }
4949
parking_lot = { workspace = true }
5050
paste = { workspace = true }
51-
pin-project = { workspace = true }
51+
pin-project-lite = { workspace = true }
5252
prost = { workspace = true }
5353
rand = { workspace = true }
5454
rstest = { workspace = true, optional = true }

vortex-array/src/stream/adapter.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ use std::pin::Pin;
55
use std::task::Poll;
66

77
use futures::Stream;
8-
use pin_project::pin_project;
8+
use pin_project_lite::pin_project;
99
use vortex_dtype::DType;
1010
use vortex_error::VortexResult;
1111

1212
use crate::ArrayRef;
1313
use crate::stream::ArrayStream;
1414

15-
/// An adapter for a stream of array chunks to implement an ArrayReader.
16-
#[pin_project]
17-
pub struct ArrayStreamAdapter<S> {
18-
dtype: DType,
19-
#[pin]
20-
inner: S,
15+
pin_project! {
16+
/// An adapter for a stream of array chunks to implement an ArrayReader.
17+
pub struct ArrayStreamAdapter<S> {
18+
dtype: DType,
19+
#[pin]
20+
inner: S,
21+
}
2122
}
2223

2324
impl<S> ArrayStreamAdapter<S>

0 commit comments

Comments
 (0)