Skip to content

Commit

Permalink
Reference instead ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthbdn committed Dec 3, 2023
1 parent cfd6c12 commit 3d27199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rp2040-hal/src/rtc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl RealTimeClock {
#[allow(clippy::needless_pass_by_ref_mut)]
pub fn new(
rtc: RTC,
clock: RtcClock,
clock: &RtcClock,
resets: &mut RESETS,
initial_date: DateTime,
) -> Result<Self, RtcError> {
Expand Down

0 comments on commit 3d27199

Please sign in to comment.