Skip to content

Commit

Permalink
Removed unsafe blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjepronk committed Jul 29, 2019
1 parent 7b15acc commit 83fb625
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/backup_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ pub struct BackupDomain {

macro_rules! write_drx {
($self:ident, $drx:ident, $idx:expr, $new:expr) => {
unsafe {
$self._regs.$drx[$idx].write(|w| w.d().bits($new));
}
$self._regs.$drx[$idx].write(|w| w.d().bits($new));
};
}

Expand Down

0 comments on commit 83fb625

Please sign in to comment.