mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-17 08:50:57 +00:00
- switch_context dispatched on a stringly-typed method name with a catch-all arm that silently meant 'stop'; use a two-variant enum matched exhaustively on both the native and Python-dispatch paths (interning the method name for the latter). - none_to_option re-implemented what pyo3's extract::<Option<_>>() does natively; use the extract idiom the codebase already uses elsewhere. - cputime_delta returned PyResult but its body is infallible; return the tuple directly and drop the ? plumbing at the call sites. - registered_sentinel in the Rust tests was a pass-through wrapper around sentinel() with a misleading name; call sentinel() directly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JFbRtswu7rsHrttJFauUUb