Skip to content

Commit

Permalink
fix clippy and msrc
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Oct 22, 2024
1 parent c783679 commit 11f2a12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
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 11f2a12

Please sign in to comment.