Skip to content

Commit c5bbc3c

Browse files
Merge #670
670: style(generic): remove explicit deref r=burrbull a=duskmoon314 Clippy warning deref is done by auto-deref, so no explicit deref is needed. Co-authored-by: Campbell He <[email protected]>
2 parents 0c09c69 + 81efde7 commit c5bbc3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
- Update `clap` to 4.0, use `irx-config` instead of `clap_conf`
1111
- Add #[must_use] to prevent hanging field writers
12+
- remove explicit deref in `generic.rs` since it's done by auto-deref
1213

1314
## [v0.26.0] - 2022-10-07
1415

src/generate/generic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ where
140140
F: FnOnce(&mut REG::Writer) -> &mut W<REG>
141141
{
142142
self.register.set(
143-
(*f(&mut REG::Writer::from(W {
143+
f(&mut REG::Writer::from(W {
144144
bits: REG::Ux::default(),
145145
_reg: marker::PhantomData,
146-
})))
146+
}))
147147
.bits,
148148
);
149149
}

0 commit comments

Comments
 (0)