Skip to content

Commit 0eee117

Browse files
committed
Prevent dead code error on afec::Samples
Why it's unused is a mystery, probably was planned to be returned as multichannel measurement.
1 parent 885f085 commit 0eee117

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hal/src/afec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ struct Sample {
172172
const NUM_CHANNELS: usize = 12;
173173

174174
/// Iterator of [`Sample`]s for enabled and measured channels, from [`Afec::sample`].
175+
#[allow(dead_code)]
175176
struct Samples([Option<Sample>; NUM_CHANNELS]);
176177
impl Iterator for Samples {
177178
type Item = Sample;

0 commit comments

Comments
 (0)