Skip to content

Commit 55deb1c

Browse files
author
Andrew J Westlake
committed
Attempting to satisfy cargo fmt lint in CI action
1 parent 9c9f299 commit 55deb1c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ lint: fmt clippy
1414
test: lint
1515
cargo test --all-features
1616

17-
test-feature-powerset:
17+
test-feature-powerset: lint
1818
cargo install cargo-hack
1919
cargo hack test --feature-powerset
2020

src/testing.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@
182182
//! # fn main() {}
183183
//! ```
184184
185+
use std::{future::Future, pin::Pin};
186+
185187
use clap::{App, Arg};
186188
use futures::stream::{self, StreamExt};
187189
use pyo3::prelude::*;
@@ -245,10 +247,7 @@ pub fn parse_args() -> Args {
245247
}
246248
}
247249

248-
type TestFn = dyn Fn() -> std::pin::Pin<
249-
Box<dyn std::future::Future<Output = pyo3::PyResult<()>> + Send>,
250-
> + Send
251-
+ Sync;
250+
type TestFn = dyn Fn() -> Pin<Box<dyn Future<Output = PyResult<()>> + Send>> + Send + Sync;
252251

253252
/// The structure used by the `#[test]` macros to provide a test to the `pyo3-asyncio` test harness.
254253
#[derive(Clone)]

0 commit comments

Comments
 (0)