Skip to content

Commit 2785b4c

Browse files
yet more lints (#790)
Summary: Pull Request resolved: #790 lints Reviewed By: pablorfb-meta Differential Revision: D79808406 fbshipit-source-id: 0a2bc7edabb9c072bd53e32aa89598f7bd5c0e64
1 parent 2370a0f commit 2785b4c

File tree

6 files changed

+6
-15
lines changed

6 files changed

+6
-15
lines changed

hyperactor/src/proc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,7 @@ mod tests {
26152615
impl Actor for TestActor {
26162616
type Params = ();
26172617

2618-
async fn new(param: ()) -> Result<Self, anyhow::Error> {
2618+
async fn new(_param: ()) -> Result<Self, anyhow::Error> {
26192619
Ok(Self)
26202620
}
26212621
}

hyperactor_mesh/benches/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use hyperactor_mesh::alloc::LocalAllocator;
2222
use hyperactor_mesh::extent;
2323
use hyperactor_mesh::selection::dsl::all;
2424
use hyperactor_mesh::selection::dsl::true_;
25-
use hyperactor_mesh::shape;
2625
use tokio::time::Duration;
2726

2827
mod bench_actor;

monarch_extension/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ monarch_types = { version = "0.0.0", path = "../monarch_types" }
3333
nccl-sys = { path = "../nccl-sys", optional = true }
3434
ndslice = { version = "0.0.0", path = "../ndslice" }
3535
pyo3 = { version = "0.24", features = ["anyhow", "multiple-pymethods"] }
36-
pyo3-async-runtimes = { version = "0.24", features = ["attributes", "tokio-runtime"] }
3736
rdmaxcel-sys = { path = "../rdmaxcel-sys", optional = true }
3837
serde = { version = "1.0.219", features = ["derive", "rc"] }
3938
tokio = { version = "1.46.1", features = ["full", "test-util", "tracing"] }

monarch_hyperactor/src/actor_mesh.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ use std::sync::Arc;
1010

1111
use hyperactor::ActorRef;
1212
use hyperactor::id;
13-
use hyperactor::mailbox::OncePortReceiver;
14-
use hyperactor::mailbox::PortReceiver;
1513
use hyperactor::supervision::ActorSupervisionEvent;
1614
use hyperactor_mesh::Mesh;
1715
use hyperactor_mesh::RootActorMesh;
@@ -20,30 +18,23 @@ use hyperactor_mesh::actor_mesh::ActorSupervisionEvents;
2018
use hyperactor_mesh::reference::ActorMeshRef;
2119
use hyperactor_mesh::shared_cell::SharedCell;
2220
use hyperactor_mesh::shared_cell::SharedCellRef;
23-
use pyo3::IntoPyObjectExt;
24-
use pyo3::exceptions::PyEOFError;
2521
use pyo3::exceptions::PyException;
2622
use pyo3::exceptions::PyNotImplementedError;
2723
use pyo3::exceptions::PyRuntimeError;
28-
use pyo3::exceptions::PyTypeError;
2924
use pyo3::exceptions::PyValueError;
3025
use pyo3::prelude::*;
3126
use pyo3::types::PyBytes;
3227
use pyo3::types::PyDict;
3328
use pyo3::types::PySlice;
3429
use serde::Deserialize;
3530
use serde::Serialize;
36-
use tokio::sync::Mutex;
3731

3832
use crate::actor::PythonActor;
3933
use crate::actor::PythonMessage;
4034
use crate::mailbox::PyMailbox;
41-
use crate::mailbox::PythonOncePortReceiver;
42-
use crate::mailbox::PythonPortReceiver;
4335
use crate::proc::PyActorId;
4436
use crate::proc_mesh::Keepalive;
4537
use crate::pytokio::PyPythonTask;
46-
use crate::pytokio::PythonTask;
4738
use crate::selection::PySelection;
4839
use crate::shape::PyShape;
4940
use crate::supervision::SupervisionError;

monarch_hyperactor/src/mailbox.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ impl PythonPortReceiver {
408408
}
409409

410410
impl PythonPortReceiver {
411-
pub fn inner(&self) -> Arc<tokio::sync::Mutex<PortReceiver<PythonMessage>>> {
411+
#[allow(dead_code)]
412+
pub(super) fn inner(&self) -> Arc<tokio::sync::Mutex<PortReceiver<PythonMessage>>> {
412413
Arc::clone(&self.inner)
413414
}
414415
}
@@ -574,7 +575,8 @@ impl PythonOncePortReceiver {
574575
}
575576

576577
impl PythonOncePortReceiver {
577-
pub fn inner(&self) -> Arc<std::sync::Mutex<Option<OncePortReceiver<PythonMessage>>>> {
578+
#[allow(dead_code)]
579+
pub(super) fn inner(&self) -> Arc<std::sync::Mutex<Option<OncePortReceiver<PythonMessage>>>> {
578580
Arc::clone(&self.inner)
579581
}
580582
}

monarch_hyperactor/src/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn initialize(py: Python) -> Result<()> {
8888
py,
8989
None,
9090
None,
91-
|args: &Bound<'_, PyTuple>, _kwargs: Option<&Bound<'_, PyDict>>| {
91+
|_args: &Bound<'_, PyTuple>, _kwargs: Option<&Bound<'_, PyDict>>| {
9292
shutdown_tokio_runtime();
9393
},
9494
)

0 commit comments

Comments
 (0)