Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpettersson committed Dec 19, 2023
1 parent 55b8a63 commit 8631917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rp2040-hal/src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ impl<'a, Word> AdcFreeRunning<'a, Word> {
/// their defaults.
///
/// Returns the underlying [`Adc`], to be reused.
pub fn stop(mut self) -> &'a mut Adc {
pub fn stop(self) -> &'a mut Adc {
// stop capture and clear channel selection
self.adc
.device
Expand Down

0 comments on commit 8631917

Please sign in to comment.