Skip to content

Commit 12b0573

Browse files
committed
defaults for Raw
1 parent ec76050 commit 12b0573

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/generate/generic.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ impl<REG: RegisterSpec> W<REG> {
310310
}
311311

312312
#[doc(hidden)]
313-
pub struct FieldReaderRaw<FI>
313+
pub struct FieldReaderRaw<FI = u8>
314314
where
315315
FI: FieldSpec
316316
{
@@ -331,7 +331,7 @@ impl<FI: FieldSpec> FieldReaderRaw<FI> {
331331
}
332332

333333
#[doc(hidden)]
334-
pub struct BitReaderRaw<FI> {
334+
pub struct BitReaderRaw<FI = bool> {
335335
pub(crate) bits: bool,
336336
_reg: marker::PhantomData<FI>,
337337
}
@@ -409,7 +409,7 @@ pub struct Safe;
409409
pub struct Unsafe;
410410

411411
#[doc(hidden)]
412-
pub struct FieldWriterRaw<'a, REG, const WI: u8, const O: u8, FI, Safety>
412+
pub struct FieldWriterRaw<'a, REG, const WI: u8, const O: u8, FI = bool, Safety = Safe>
413413
where
414414
REG: Writable + RegisterSpec,
415415
FI: FieldSpec,
@@ -436,7 +436,7 @@ where
436436
}
437437

438438
#[doc(hidden)]
439-
pub struct BitWriterRaw<'a, REG, const O: u8, FI, M>
439+
pub struct BitWriterRaw<'a, REG, const O: u8, FI = bool, M = BitM>
440440
where
441441
REG: Writable + RegisterSpec,
442442
bool: From<FI>,

0 commit comments

Comments
 (0)