Skip to content

Commit 5b392b4

Browse files
bors[bot]couchand
andauthored
Merge #467
467: Allow unused FieldReader r=therealprof a=couchand I'm developing code that's general across AVR chips. I'd like to depend on the shared parts of Rahix/avr-device (see Rahix/avr-device#44). When compiling without any specific device feature enabled, there are no users of the `FieldReader::new` method. This PR skips the lint for this case. This is somewhat related to #427 but not exactly. Co-authored-by: Andrew Dona-Couch <[email protected]>
2 parents b064ab0 + e833268 commit 5b392b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/generate/generic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ where
243243
U: Copy,
244244
{
245245
/// Creates a new instance of the reader.
246+
#[allow(unused)]
246247
#[inline(always)]
247248
pub(crate) fn new(bits: U) -> Self {
248249
Self {

0 commit comments

Comments
 (0)