From 935842ba94f0ba698797b4dc1d43e98574503687 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Wed, 27 May 2026 18:01:26 +0200 Subject: [PATCH] fix: correct 'Poisond' typo to 'Poisoned' in mutex expect messages Co-Authored-By: Claude Opus 4.7 --- src/wrapper.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wrapper.rs b/src/wrapper.rs index 4dd577f..665e77f 100644 --- a/src/wrapper.rs +++ b/src/wrapper.rs @@ -1252,7 +1252,7 @@ impl PySampler { fn is_finished(&mut self, py: Python<'_>) -> PyResult { self.wait(py, Some(0.001))?; py.detach(|| { - let guard = &mut self.0.lock().expect("Poisond sampler state mutex"); + let guard = &mut self.0.lock().expect("Poisoned sampler state mutex"); Ok(matches!( guard.deref_mut().0, SamplerState::FinishedZarr | SamplerState::FinishedArrow(_) | SamplerState::Empty @@ -1265,7 +1265,7 @@ impl PySampler { match self .0 .lock() - .expect("Poisond sampler state mutex") + .expect("Poisoned sampler state mutex") .deref_mut() { (SamplerState::RunningZarr(control), _) => { @@ -1286,7 +1286,7 @@ impl PySampler { match self .0 .lock() - .expect("Poisond sampler state mutex") + .expect("Poisoned sampler state mutex") .deref_mut() { (SamplerState::RunningZarr(control), _) => { @@ -1305,7 +1305,7 @@ impl PySampler { #[pyo3(signature = (timeout_seconds=None))] fn wait(&mut self, py: Python<'_>, timeout_seconds: Option) -> PyResult<()> { py.detach(|| { - let guard = &mut self.0.lock().expect("Poisond sampler state mutex"); + let guard = &mut self.0.lock().expect("Poisoned sampler state mutex"); let slot = guard.deref_mut(); let slot = &mut slot.0; @@ -1331,7 +1331,7 @@ impl PySampler { fn abort(&mut self, py: Python<'_>) -> PyResult<()> { py.detach(|| { - let guard = &mut self.0.lock().expect("Poisond sampler state mutex"); + let guard = &mut self.0.lock().expect("Poisoned sampler state mutex"); let slot = guard.deref_mut(); let slot = &mut slot.0; @@ -1380,7 +1380,7 @@ impl PySampler { match self .0 .lock() - .expect("Poisond sampler state mutex") + .expect("Poisoned sampler state mutex") .deref_mut() .0 { @@ -1402,7 +1402,7 @@ impl PySampler { match &mut self .0 .lock() - .expect("Poisond sampler state mutex") + .expect("Poisoned sampler state mutex") .deref_mut() .0 { @@ -1429,7 +1429,7 @@ impl PySampler { } fn take_results(&mut self) -> PyResult { - let state = &mut self.0.lock().expect("Poisond sampler state mutex"); + let state = &mut self.0.lock().expect("Poisoned sampler state mutex"); match &state.0 { SamplerState::FinishedZarr => {