summary refs log tree commit diff
path: root/rust/src/acl
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/acl')
-rw-r--r--rust/src/acl/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/acl/mod.rs b/rust/src/acl/mod.rs

index 982720ba90..57b45475fd 100644 --- a/rust/src/acl/mod.rs +++ b/rust/src/acl/mod.rs
@@ -32,14 +32,14 @@ use crate::push::utils::{glob_to_regex, GlobMatchType}; /// Called when registering modules with python. pub fn register_module(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> { - let child_module = PyModule::new_bound(py, "acl")?; + let child_module = PyModule::new(py, "acl")?; child_module.add_class::<ServerAclEvaluator>()?; m.add_submodule(&child_module)?; // We need to manually add the module to sys.modules to make `from // synapse.synapse_rust import acl` work. - py.import_bound("sys")? + py.import("sys")? .getattr("modules")? .set_item("synapse.synapse_rust.acl", child_module)?;