Skip to content

Commit 469543b

Browse files
committed
Fix clippy warnings
1 parent 6b68712 commit 469543b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

soa-derive-internal/src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl Input {
104104
}
105105
}
106106
_ => panic!("#[derive(StructOfArray)] only supports struct"),
107-
};
107+
}
108108

109109
assert!(!fields.is_empty(), "#[derive(StructOfArray)] only supports struct with fields");
110110

tests/zip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ impl Wrapper {
129129
}
130130
}
131131

132-
fn particles(&self) -> ParticleSlice {
132+
fn particles(&self) -> ParticleSlice<'_> {
133133
self.particles.as_slice()
134134
}
135135

136-
fn particles_mut(&mut self) -> ParticleSliceMut {
136+
fn particles_mut(&mut self) -> ParticleSliceMut<'_> {
137137
self.particles.as_mut_slice()
138138
}
139139
}

0 commit comments

Comments
 (0)