Skip to content

Commit d5864fe

Browse files
committed
Fix Rust lint errors
1 parent c073963 commit d5864fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

temporalio/bridge/src/worker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ impl WorkerRef {
572572
let bytes = match worker.poll_nexus_task().await {
573573
Ok(task) => task.encode_to_vec(),
574574
Err(PollError::ShutDown) => return Err(PollShutdownError::new_err(())),
575-
Err(err) => return Err(PyRuntimeError::new_err(format!("Poll failure: {}", err))),
575+
Err(err) => return Err(PyRuntimeError::new_err(format!("Poll failure: {err}"))),
576576
};
577577
Ok(bytes)
578578
})
@@ -618,7 +618,7 @@ impl WorkerRef {
618618
) -> PyResult<Bound<'p, PyAny>> {
619619
let worker = self.worker.as_ref().unwrap().clone();
620620
let completion = NexusTaskCompletion::decode(proto.as_bytes())
621-
.map_err(|err| PyValueError::new_err(format!("Invalid proto: {}", err)))?;
621+
.map_err(|err| PyValueError::new_err(format!("Invalid proto: {err}")))?;
622622
self.runtime.future_into_py(py, async move {
623623
worker
624624
.complete_nexus_task(completion)

0 commit comments

Comments
 (0)