Skip to content

Commit

Permalink
fix clippy and msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Oct 22, 2024
1 parent c783679 commit 3021c46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyo3-macros-backend/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ pub fn pymodule_module_impl(
options.submodule.is_some(),
options
.supports_free_threaded
.is_some_and(|op| op.value.value),
.map(|op| op.value.value)
.unwrap_or(false),
);

Ok(quote!(
Expand Down Expand Up @@ -402,7 +403,8 @@ pub fn pymodule_function_impl(
false,
options
.supports_free_threaded
.is_some_and(|op| op.value.value),
.map(|op| op.value.value)
.unwrap_or(false),
);

// Module function called with optional Python<'_> marker as first arg, followed by the module.
Expand Down
1 change: 1 addition & 0 deletions src/types/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ impl<'py> PyModuleMethods<'py> for Bound<'py, PyModule> {
0..=c_int::MAX => Ok(()),
}
}
#[cfg(any(Py_LIMITED_API, not(Py_GIL_DISABLED)))]
Ok(())
}
}
Expand Down

0 comments on commit 3021c46

Please sign in to comment.