Skip to content

Commit 9bba53b

Browse files
fix lints
Differential Revision: D78566222
1 parent 27b2e0d commit 9bba53b

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

monarch_hyperactor/src/actor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use hyperactor::Context;
2222
use hyperactor::Handler;
2323
use hyperactor::Instance;
2424
use hyperactor::Named;
25-
use hyperactor::cap::CanSend;
2625
use hyperactor::forward;
2726
use hyperactor::message::Bind;
2827
use hyperactor::message::Bindings;

monarch_hyperactor/src/actor_mesh.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use hyperactor_mesh::actor_mesh::ActorSupervisionEvents;
2020
use hyperactor_mesh::reference::ActorMeshRef;
2121
use hyperactor_mesh::shared_cell::SharedCell;
2222
use hyperactor_mesh::shared_cell::SharedCellRef;
23+
use pyo3::IntoPyObjectExt;
2324
use pyo3::exceptions::PyEOFError;
2425
use pyo3::exceptions::PyException;
2526
use pyo3::exceptions::PyNotImplementedError;
@@ -389,7 +390,7 @@ async fn get_next(
389390
Some(event) => PyActorSupervisionEvent::from(event.clone()),
390391
};
391392

392-
Ok(Python::with_gil(|py| supervision_event.into_py(py)))
393+
Python::with_gil(|py| supervision_event.into_py_any(py))
393394
}
394395

395396
// TODO(albertli): this is temporary remove this when pushing all supervision logic to rust.

monarch_hyperactor/src/local_state_broker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Actor for LocalStateBrokerActor {
5454
impl Handler<LocalStateBrokerMessage> for LocalStateBrokerActor {
5555
async fn handle(
5656
&mut self,
57-
cx: &Context<Self>,
57+
_cx: &Context<Self>,
5858
message: LocalStateBrokerMessage,
5959
) -> anyhow::Result<()> {
6060
match message {

monarch_hyperactor/src/mailbox.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use std::hash::DefaultHasher;
1010
use std::hash::Hash;
1111
use std::hash::Hasher;
12-
use std::ops::Deref;
1312
use std::sync::Arc;
1413

1514
use hyperactor::Mailbox;
@@ -36,7 +35,6 @@ use hyperactor::message::Bindings;
3635
use hyperactor::message::Unbind;
3736
use hyperactor_mesh::comm::multicast::set_cast_info_on_headers;
3837
use monarch_types::PickledPyObject;
39-
use pyo3::IntoPyObjectExt;
4038
use pyo3::exceptions::PyEOFError;
4139
use pyo3::exceptions::PyRuntimeError;
4240
use pyo3::exceptions::PyValueError;

0 commit comments

Comments
 (0)