Skip to content

Commit cd93451

Browse files
authored
Merge pull request #30 from ia0/cleanup
Fix mismatched_lifetime_syntaxes lint
2 parents c615907 + 3b8299d commit cd93451

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+176
-177
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! USB peripheral driver for nRF microcontrollers.
22
33
#![no_std]
4-
#![allow(mismatched_lifetime_syntaxes)] // TODO: Remove in follow-up PR.
54

65
mod errata;
76
mod pac;

src/pac/usbd/dpdmvalue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl R {
9999
impl W {
100100
#[doc = "Bits 0:4 - State D+ and D- lines will be forced into by the DPDMDRIVE task"]
101101
#[inline(always)]
102-
pub fn state(&mut self) -> STATE_W {
102+
pub fn state(&mut self) -> STATE_W<'_> {
103103
STATE_W { w: self }
104104
}
105105
}

src/pac/usbd/dtoggle.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,17 @@ impl R {
198198
impl W {
199199
#[doc = "Bits 0:2 - Select bulk endpoint number"]
200200
#[inline(always)]
201-
pub fn ep(&mut self) -> EP_W {
201+
pub fn ep(&mut self) -> EP_W<'_> {
202202
EP_W { w: self }
203203
}
204204
#[doc = "Bit 7 - Selects IN or OUT endpoint"]
205205
#[inline(always)]
206-
pub fn io(&mut self) -> IO_W {
206+
pub fn io(&mut self) -> IO_W<'_> {
207207
IO_W { w: self }
208208
}
209209
#[doc = "Bits 8:9 - Data toggle value"]
210210
#[inline(always)]
211-
pub fn value(&mut self) -> VALUE_W {
211+
pub fn value(&mut self) -> VALUE_W<'_> {
212212
VALUE_W { w: self }
213213
}
214214
}

src/pac/usbd/enable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl R {
9595
impl W {
9696
#[doc = "Bit 0 - Enable USB"]
9797
#[inline(always)]
98-
pub fn enable(&mut self) -> ENABLE_W {
98+
pub fn enable(&mut self) -> ENABLE_W<'_> {
9999
ENABLE_W { w: self }
100100
}
101101
}

src/pac/usbd/epdatastatus.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,72 +1135,72 @@ impl R {
11351135
impl W {
11361136
#[doc = "Bit 1 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
11371137
#[inline(always)]
1138-
pub fn epin1(&mut self) -> EPIN1_W {
1138+
pub fn epin1(&mut self) -> EPIN1_W<'_> {
11391139
EPIN1_W { w: self }
11401140
}
11411141
#[doc = "Bit 2 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
11421142
#[inline(always)]
1143-
pub fn epin2(&mut self) -> EPIN2_W {
1143+
pub fn epin2(&mut self) -> EPIN2_W<'_> {
11441144
EPIN2_W { w: self }
11451145
}
11461146
#[doc = "Bit 3 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
11471147
#[inline(always)]
1148-
pub fn epin3(&mut self) -> EPIN3_W {
1148+
pub fn epin3(&mut self) -> EPIN3_W<'_> {
11491149
EPIN3_W { w: self }
11501150
}
11511151
#[doc = "Bit 4 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
11521152
#[inline(always)]
1153-
pub fn epin4(&mut self) -> EPIN4_W {
1153+
pub fn epin4(&mut self) -> EPIN4_W<'_> {
11541154
EPIN4_W { w: self }
11551155
}
11561156
#[doc = "Bit 5 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
11571157
#[inline(always)]
1158-
pub fn epin5(&mut self) -> EPIN5_W {
1158+
pub fn epin5(&mut self) -> EPIN5_W<'_> {
11591159
EPIN5_W { w: self }
11601160
}
11611161
#[doc = "Bit 6 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
11621162
#[inline(always)]
1163-
pub fn epin6(&mut self) -> EPIN6_W {
1163+
pub fn epin6(&mut self) -> EPIN6_W<'_> {
11641164
EPIN6_W { w: self }
11651165
}
11661166
#[doc = "Bit 7 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
11671167
#[inline(always)]
1168-
pub fn epin7(&mut self) -> EPIN7_W {
1168+
pub fn epin7(&mut self) -> EPIN7_W<'_> {
11691169
EPIN7_W { w: self }
11701170
}
11711171
#[doc = "Bit 17 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
11721172
#[inline(always)]
1173-
pub fn epout1(&mut self) -> EPOUT1_W {
1173+
pub fn epout1(&mut self) -> EPOUT1_W<'_> {
11741174
EPOUT1_W { w: self }
11751175
}
11761176
#[doc = "Bit 18 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
11771177
#[inline(always)]
1178-
pub fn epout2(&mut self) -> EPOUT2_W {
1178+
pub fn epout2(&mut self) -> EPOUT2_W<'_> {
11791179
EPOUT2_W { w: self }
11801180
}
11811181
#[doc = "Bit 19 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
11821182
#[inline(always)]
1183-
pub fn epout3(&mut self) -> EPOUT3_W {
1183+
pub fn epout3(&mut self) -> EPOUT3_W<'_> {
11841184
EPOUT3_W { w: self }
11851185
}
11861186
#[doc = "Bit 20 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
11871187
#[inline(always)]
1188-
pub fn epout4(&mut self) -> EPOUT4_W {
1188+
pub fn epout4(&mut self) -> EPOUT4_W<'_> {
11891189
EPOUT4_W { w: self }
11901190
}
11911191
#[doc = "Bit 21 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
11921192
#[inline(always)]
1193-
pub fn epout5(&mut self) -> EPOUT5_W {
1193+
pub fn epout5(&mut self) -> EPOUT5_W<'_> {
11941194
EPOUT5_W { w: self }
11951195
}
11961196
#[doc = "Bit 22 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
11971197
#[inline(always)]
1198-
pub fn epout6(&mut self) -> EPOUT6_W {
1198+
pub fn epout6(&mut self) -> EPOUT6_W<'_> {
11991199
EPOUT6_W { w: self }
12001200
}
12011201
#[doc = "Bit 23 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
12021202
#[inline(always)]
1203-
pub fn epout7(&mut self) -> EPOUT7_W {
1203+
pub fn epout7(&mut self) -> EPOUT7_W<'_> {
12041204
EPOUT7_W { w: self }
12051205
}
12061206
}

src/pac/usbd/epin/maxcnt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl R {
3434
impl W {
3535
#[doc = "Bits 0:6 - Maximum number of bytes to transfer"]
3636
#[inline(always)]
37-
pub fn maxcnt(&mut self) -> MAXCNT_W {
37+
pub fn maxcnt(&mut self) -> MAXCNT_W<'_> {
3838
MAXCNT_W { w: self }
3939
}
4040
}

src/pac/usbd/epin/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl R {
3434
impl W {
3535
#[doc = "Bits 0:31 - Data pointer. Accepts any address in Data RAM."]
3636
#[inline(always)]
37-
pub fn ptr(&mut self) -> PTR_W {
37+
pub fn ptr(&mut self) -> PTR_W<'_> {
3838
PTR_W { w: self }
3939
}
4040
}

src/pac/usbd/epinen.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -735,47 +735,47 @@ impl R {
735735
impl W {
736736
#[doc = "Bit 0 - Enable IN endpoint 0"]
737737
#[inline(always)]
738-
pub fn in0(&mut self) -> IN0_W {
738+
pub fn in0(&mut self) -> IN0_W<'_> {
739739
IN0_W { w: self }
740740
}
741741
#[doc = "Bit 1 - Enable IN endpoint 1"]
742742
#[inline(always)]
743-
pub fn in1(&mut self) -> IN1_W {
743+
pub fn in1(&mut self) -> IN1_W<'_> {
744744
IN1_W { w: self }
745745
}
746746
#[doc = "Bit 2 - Enable IN endpoint 2"]
747747
#[inline(always)]
748-
pub fn in2(&mut self) -> IN2_W {
748+
pub fn in2(&mut self) -> IN2_W<'_> {
749749
IN2_W { w: self }
750750
}
751751
#[doc = "Bit 3 - Enable IN endpoint 3"]
752752
#[inline(always)]
753-
pub fn in3(&mut self) -> IN3_W {
753+
pub fn in3(&mut self) -> IN3_W<'_> {
754754
IN3_W { w: self }
755755
}
756756
#[doc = "Bit 4 - Enable IN endpoint 4"]
757757
#[inline(always)]
758-
pub fn in4(&mut self) -> IN4_W {
758+
pub fn in4(&mut self) -> IN4_W<'_> {
759759
IN4_W { w: self }
760760
}
761761
#[doc = "Bit 5 - Enable IN endpoint 5"]
762762
#[inline(always)]
763-
pub fn in5(&mut self) -> IN5_W {
763+
pub fn in5(&mut self) -> IN5_W<'_> {
764764
IN5_W { w: self }
765765
}
766766
#[doc = "Bit 6 - Enable IN endpoint 6"]
767767
#[inline(always)]
768-
pub fn in6(&mut self) -> IN6_W {
768+
pub fn in6(&mut self) -> IN6_W<'_> {
769769
IN6_W { w: self }
770770
}
771771
#[doc = "Bit 7 - Enable IN endpoint 7"]
772772
#[inline(always)]
773-
pub fn in7(&mut self) -> IN7_W {
773+
pub fn in7(&mut self) -> IN7_W<'_> {
774774
IN7_W { w: self }
775775
}
776776
#[doc = "Bit 8 - Enable ISO IN endpoint"]
777777
#[inline(always)]
778-
pub fn isoin(&mut self) -> ISOIN_W {
778+
pub fn isoin(&mut self) -> ISOIN_W<'_> {
779779
ISOIN_W { w: self }
780780
}
781781
}

src/pac/usbd/epout/maxcnt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl R {
3434
impl W {
3535
#[doc = "Bits 0:6 - Maximum number of bytes to transfer"]
3636
#[inline(always)]
37-
pub fn maxcnt(&mut self) -> MAXCNT_W {
37+
pub fn maxcnt(&mut self) -> MAXCNT_W<'_> {
3838
MAXCNT_W { w: self }
3939
}
4040
}

src/pac/usbd/epout/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl R {
3434
impl W {
3535
#[doc = "Bits 0:31 - Data pointer. Accepts any address in Data RAM."]
3636
#[inline(always)]
37-
pub fn ptr(&mut self) -> PTR_W {
37+
pub fn ptr(&mut self) -> PTR_W<'_> {
3838
PTR_W { w: self }
3939
}
4040
}

0 commit comments

Comments
 (0)