Skip to content

Commit 1d25143

Browse files
committed
Remove references of copy types
1 parent 21310f9 commit 1d25143

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/time.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ impl MonoTimer {
102102
}
103103

104104
/// Returns the frequency at which the monotonic timer is operating at
105-
pub fn frequency(&self) -> Hertz {
105+
pub fn frequency(self) -> Hertz {
106106
self.frequency
107107
}
108108

109109
/// Returns an `Instant` corresponding to "now"
110-
pub fn now(&self) -> Instant {
110+
pub fn now(self) -> Instant {
111111
Instant {
112112
now: DWT::get_cycle_count(),
113113
}
@@ -122,7 +122,7 @@ pub struct Instant {
122122

123123
impl Instant {
124124
/// Ticks elapsed since the `Instant` was created
125-
pub fn elapsed(&self) -> u32 {
125+
pub fn elapsed(self) -> u32 {
126126
DWT::get_cycle_count().wrapping_sub(self.now)
127127
}
128128
}

0 commit comments

Comments
 (0)