Skip to content

Commit ceaaea5

Browse files
author
Andrew J Westlake
committed
Added clippy check to pre-push githook
1 parent cb99fb1 commit ceaaea5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.githooks/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
22

3+
make clippy
34
cargo test --features testing

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static CALL_SOON: OnceCell<PyObject> = OnceCell::new();
106106
static CREATE_TASK: OnceCell<PyObject> = OnceCell::new();
107107
static CREATE_FUTURE: OnceCell<PyObject> = OnceCell::new();
108108

109+
#[allow(clippy::needless_doctest_main)]
109110
/// Wraps the provided function with the initialization and finalization for PyO3 Asyncio
110111
///
111112
/// This function **_MUST_** be called from the main thread.

0 commit comments

Comments
 (0)