Skip to content

Commit

Permalink
logdna#23 Update dependencies and add static lifetime to SegmentedBuf...
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-lyons-kehl committed May 27, 2022
1 parent c452200 commit b76b430
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ log = "0.4"
time = "0.3"
derivative = "2"
smallvec = "1"
countme = "2"
countme = "3.0.1"

#serialization
serde = { version = "1", features = ["derive"] }
Expand All @@ -46,11 +46,11 @@ utf-8 = "0.7"
env_logger = "0.9"
tokio-test = "0.4"
tokio = { version = "1", features = ["rt", "macros", "io-util"] }
tokio-util = { version = "0.6", features = ["compat"] }
proptest = "0.10"
tokio-util = { version = "0.7.2", features = ["compat"] }
proptest = "1.0.0"
flate2 = "1.0"
serial_test = "0.5"
countme = { version = "2", features = ["enable"] }
serial_test = "0.6"
countme = { version = "3.0.1", features = ["enable"] }

[profile.release]
debug=true
6 changes: 3 additions & 3 deletions src/segmented_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl Buf for Buffer {

// TODO: expose size when const generics become available
#[derive(PartialEq)]
pub struct SegmentedBuf<T> {
pub struct SegmentedBuf<T: 'static> {
_c: countme::Count<Self>,
pub(crate) bufs: SmallVec<[T; 4]>,
pos: usize,
Expand Down Expand Up @@ -318,7 +318,7 @@ impl futures::io::AsyncBufRead for SegmentedBuf<Reusable<Buffer>> {
}

#[pin_project]
pub struct SegmentedPoolBuf<Fut, T, Fi>
pub struct SegmentedPoolBuf<Fut, T: 'static, Fi>
where
T: ClearBuf,
{
Expand Down Expand Up @@ -713,7 +713,7 @@ impl futures::io::AsyncBufRead for SegmentedBufBytesReader<'_> {
}
}

pub struct SegmentedPoolBufIter<'a, F, T, Fi>
pub struct SegmentedPoolBufIter<'a, F, T: 'static, Fi>
where
T: std::marker::Send + ClearBuf,
{
Expand Down

0 comments on commit b76b430

Please sign in to comment.