Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
toolchain: "1.70"
toolchain: "1.83"
- run: cargo check --all-targets --all-features

fmt:
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
toolchain: "1.70"
toolchain: "1.83"
components: rustfmt
- run: cargo fmt --all --check

Expand All @@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
toolchain: "1.70"
toolchain: "1.83"
- run: cargo test --all-targets --all-features

clippy:
Expand All @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it
with:
toolchain: "1.70"
toolchain: "1.83"
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings

Expand Down
8 changes: 4 additions & 4 deletions src/throttled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct PermitDebug<'a> {
}

#[cfg(debug_assertions)]
impl<'a> Drop for PermitDebug<'a> {
impl Drop for PermitDebug<'_> {
fn drop(&mut self) {
match self.start {
Some(start) => {
Expand Down Expand Up @@ -275,21 +275,21 @@ impl<'a, T> Throttled<'a, T> {
}
}

impl<'a, T> core::ops::Deref for Throttled<'a, T> {
impl<T> core::ops::Deref for Throttled<'_, T> {
type Target = T;

fn deref(&self) -> &T {
&self.inner
}
}

impl<'a, T> core::ops::DerefMut for Throttled<'a, T> {
impl<T> core::ops::DerefMut for Throttled<'_, T> {
fn deref_mut(&mut self) -> &mut T {
&mut self.inner
}
}

impl<'a, T> futures::stream::Stream for Throttled<'a, T>
impl<T> futures::stream::Stream for Throttled<'_, T>
where
T: futures::stream::Stream + Unpin,
{
Expand Down
Loading