Skip to content

Commit cf66d9d

Browse files
actor_mesh: fix lint
Summary: fix ```lang=text,counterexample warning: using `.deref()` on a double reference, which returns `&ProcMesh` instead of dereferencing the inner type --> hyperactor_mesh/src/actor_mesh.rs:60:35 | 60 | Self::Borrowed(p) => p.deref(), | ^^^^^^^^ | = note: `#[warn(suspicious_double_ref_op)]` on by default ``` Reviewed By: dulinriley Differential Revision: D75151288 fbshipit-source-id: 788bdfd2587af70de453cc1f2fb8a9eeb86937e5
1 parent 4143c07 commit cf66d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyperactor_mesh/src/actor_mesh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl Deref for ProcMeshRef<'_> {
5757
fn deref(&self) -> &Self::Target {
5858
match self {
5959
Self::Shared(p) => p,
60-
Self::Borrowed(p) => p.deref(),
60+
Self::Borrowed(p) => p, // p: &ProcMesh
6161
}
6262
}
6363
}

0 commit comments

Comments
 (0)