Skip to content

Commit 8c5f65b

Browse files
lint sweep (#1377)
Summary: Pull Request resolved: #1377 lints Reviewed By: mariusae Differential Revision: D83571462 fbshipit-source-id: 0cb5ae1ba61c43a45c0ac413733b38b668c49e3c
1 parent 9c41b5c commit 8c5f65b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hyperactor_macros/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ enum FieldFlag {
6666
}
6767

6868
/// Represents a variant of an enum.
69+
#[allow(dead_code)]
6970
enum Variant {
7071
/// A named variant (i.e., `MyVariant { .. }`).
7172
Named {
@@ -119,6 +120,7 @@ impl Variant {
119120
}
120121

121122
/// The generics of the variant itself.
123+
#[allow(dead_code)]
122124
fn generics(&self) -> &syn::Generics {
123125
match self {
124126
Variant::Named { generics, .. } => generics,

hyperactor_mesh/src/actor_mesh.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,9 +1513,7 @@ mod tests {
15131513
use hyperactor::channel::serve;
15141514
use hyperactor::clock::Clock;
15151515
use hyperactor::clock::RealClock;
1516-
use hyperactor_mesh_macros::sel;
15171516
use ndslice::Selection;
1518-
use ndslice::extent;
15191517

15201518
use crate::Mesh;
15211519
use crate::ProcMesh;

hyperactor_mesh/src/reference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ impl fmt::Display for ActorMeshId {
9898
impl FromStr for ActorMeshId {
9999
type Err = anyhow::Error;
100100

101+
#[allow(clippy::manual_strip)]
101102
fn from_str(s: &str) -> Result<Self, Self::Err> {
102103
if s.starts_with("v0:") {
103-
#[allow(clippy::manual_strip)]
104104
let parts: Vec<_> = s[3..].split(',').collect();
105105
if parts.len() != 2 {
106106
return Err(anyhow::anyhow!("invalid v0 actor mesh id: {}", s));

0 commit comments

Comments
 (0)