summaryrefslogtreecommitdiff
path: root/debian/patches/0002-Migrate-from-GIL-Refs-API-to-Bound-T.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0002-Migrate-from-GIL-Refs-API-to-Bound-T.patch')
-rw-r--r--debian/patches/0002-Migrate-from-GIL-Refs-API-to-Bound-T.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0002-Migrate-from-GIL-Refs-API-to-Bound-T.patch b/debian/patches/0002-Migrate-from-GIL-Refs-API-to-Bound-T.patch
new file mode 100644
index 0000000..2e00f45
--- /dev/null
+++ b/debian/patches/0002-Migrate-from-GIL-Refs-API-to-Bound-T.patch
@@ -0,0 +1,23 @@
+From: Matthew Fennell <matthew@fennell.dev>
+Date: Mon, 13 Oct 2025 19:50:40 +0100
+Subject: Migrate from GIL Refs API to Bound<T>
+
+See
+https://pyo3.rs/v0.26.0/migration#migrating-from-the-gil-refs-api-to-boundt.
+---
+ src/lib.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lib.rs b/src/lib.rs
+index 5ab614c..6c556f7 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -12,7 +12,7 @@ mod general;
+ use general::format_body;
+
+ #[pymodule]
+-fn slidge_style_parser(_py: Python, m: &PyModule) -> PyResult<()> {
++fn slidge_style_parser(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
+ m.add_function(wrap_pyfunction!(format_body, m)?)?;
+ m.add_function(wrap_pyfunction!(format_for_matrix, m)?)?;
+ m.add_function(wrap_pyfunction!(format_for_telegram, m)?)?;