Skip to content

Commit

Permalink
Merge #467
Browse files Browse the repository at this point in the history
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 <hi@andrewcou.ch>
  • Loading branch information
bors[bot] and couchand authored Aug 15, 2020
2 parents b064ab0 + e833268 commit 5b392b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generate/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ where
U: Copy,
{
/// Creates a new instance of the reader.
#[allow(unused)]
#[inline(always)]
pub(crate) fn new(bits: U) -> Self {
Self {
Expand Down

0 comments on commit 5b392b4

Please sign in to comment.