docs: deny warnings in ci
This commit is contained in:
parent
525358a33c
commit
1dcda8809d
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -141,6 +141,7 @@ jobs:
|
||||||
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}
|
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
RUSTFLAGS: "-D warnings"
|
RUSTFLAGS: "-D warnings"
|
||||||
|
RUSTDOCFLAGS: "-D warnings"
|
||||||
# TODO: this is a hack to workaround compile_error! warnings about auto-initialize on PyPy
|
# TODO: this is a hack to workaround compile_error! warnings about auto-initialize on PyPy
|
||||||
# Once cargo's `resolver = "2"` is stable (~ MSRV Rust 1.52), remove this.
|
# Once cargo's `resolver = "2"` is stable (~ MSRV Rust 1.52), remove this.
|
||||||
PYO3_CI: 1
|
PYO3_CI: 1
|
||||||
|
|
|
@ -299,5 +299,5 @@ In Python a generator can also return a value. To express this in Rust, PyO3 pro
|
||||||
both `Yield` values and `Return` a final value - see its docs for further details and an example.
|
both `Yield` values and `Return` a final value - see its docs for further details and an example.
|
||||||
|
|
||||||
[`PyGCProtocol`]: https://docs.rs/pyo3/latest/pyo3/class/gc/trait.PyGCProtocol.html
|
[`PyGCProtocol`]: https://docs.rs/pyo3/latest/pyo3/class/gc/trait.PyGCProtocol.html
|
||||||
[`PyGCProtocol`]: https://docs.rs/pyo3/latest/pyo3/class/number/trait.PyNumberProtocol.html
|
[`PyNumberProtocol`]: https://docs.rs/pyo3/latest/pyo3/class/number/trait.PyNumberProtocol.html
|
||||||
[`PyObjectProtocol`]: https://docs.rs/pyo3/latest/pyo3/class/basic/trait.PyObjectProtocol.html
|
[`PyObjectProtocol`]: https://docs.rs/pyo3/latest/pyo3/class/basic/trait.PyObjectProtocol.html
|
||||||
|
|
|
@ -4,7 +4,7 @@ use crate::{derive_utils::PyBaseTypeUtils, ffi, PyMethodDefType, PyNativeType};
|
||||||
use std::{marker::PhantomData, thread};
|
use std::{marker::PhantomData, thread};
|
||||||
|
|
||||||
/// This type is used as a "dummy" type on which dtolnay specializations are
|
/// This type is used as a "dummy" type on which dtolnay specializations are
|
||||||
/// applied to apply implementations from #[pymethods] & #[pyproto]
|
/// applied to apply implementations from `#[pymethods]` & `#[pyproto]`
|
||||||
pub struct PyClassImplCollector<T>(PhantomData<T>);
|
pub struct PyClassImplCollector<T>(PhantomData<T>);
|
||||||
|
|
||||||
impl<T> PyClassImplCollector<T> {
|
impl<T> PyClassImplCollector<T> {
|
||||||
|
|
|
@ -19,7 +19,7 @@ pub struct KeywordOnlyParameterDescription {
|
||||||
pub required: bool,
|
pub required: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Function argument specification for a #[pyfunction] or #[pymethod].
|
/// Function argument specification for a `#[pyfunction]` or `#[pymethod]`.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct FunctionDescription {
|
pub struct FunctionDescription {
|
||||||
pub fname: &'static str,
|
pub fname: &'static str,
|
||||||
|
|
Loading…
Reference in a new issue