Skip to content

Commit

Permalink
pconfig does not need to be mut. (#272)
Browse files Browse the repository at this point in the history
This fixes a clippy issue from rust-analyzer that's been sitting in
VSCode's problems pane for a while.
  • Loading branch information
dacut authored Jul 3, 2023
1 parent 30c3c86 commit 8e0ddd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pcnt_i64_encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ mod encoder {
PcntChannel::Channel0,
PinIndex::Pin0,
PinIndex::Pin1,
&mut PcntChannelConfig {
&PcntChannelConfig {
lctrl_mode: PcntControlMode::Reverse,
hctrl_mode: PcntControlMode::Keep,
pos_mode: PcntCountMode::Decrement,
Expand All @@ -96,7 +96,7 @@ mod encoder {
PcntChannel::Channel1,
PinIndex::Pin1,
PinIndex::Pin0,
&mut PcntChannelConfig {
&PcntChannelConfig {
lctrl_mode: PcntControlMode::Reverse,
hctrl_mode: PcntControlMode::Keep,
pos_mode: PcntCountMode::Increment,
Expand Down

0 comments on commit 8e0ddd7

Please sign in to comment.