File tree 5 files changed +7
-5
lines changed
5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 49
49
50
50
ci-macos :
51
51
name : CI-macOS
52
- runs-on : macos-11
52
+ runs-on : macos-14
53
53
54
54
strategy :
55
55
matrix :
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
8
8
9
9
## [ Unreleased]
10
10
11
+ - Relax lifetime constraint on ` I2CTransfer::transfer ` ` msgs ` reference
12
+
11
13
## [ v0.6.1] - 2024-05-09
12
14
13
15
- Properly ellide the start bit when sending a series of I2C messages as a
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ pub trait I2CTransfer<'a> {
137
137
/// Performs multiple serially chained I2C read/write transactions. On
138
138
/// success the return code is the number of successfully executed
139
139
/// transactions
140
- fn transfer ( & mut self , msgs : & ' a mut [ Self :: Message ] ) -> Result < u32 , Self :: Error > ;
140
+ fn transfer ( & mut self , msgs : & mut [ Self :: Message ] ) -> Result < u32 , Self :: Error > ;
141
141
}
142
142
143
143
/// Read/Write I2C message
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ impl<'a> I2CTransfer<'a> for LinuxI2CDevice {
299
299
type Message = LinuxI2CMessage < ' a > ;
300
300
301
301
/// Issue the provided sequence of I2C transactions
302
- fn transfer ( & mut self , messages : & ' a mut [ Self :: Message ] ) -> Result < u32 , LinuxI2CError > {
302
+ fn transfer ( & mut self , messages : & mut [ Self :: Message ] ) -> Result < u32 , LinuxI2CError > {
303
303
let msg_type = |flag : u16 | flag & I2CMessageFlags :: READ . bits ( ) ;
304
304
let mut prev_msg_type = None ;
305
305
for msg in messages. iter_mut ( ) {
@@ -335,7 +335,7 @@ impl<'a> I2CTransfer<'a> for LinuxI2CBus {
335
335
type Message = LinuxI2CMessage < ' a > ;
336
336
337
337
/// Issue the provided sequence of I2C transactions
338
- fn transfer ( & mut self , msgs : & ' a mut [ Self :: Message ] ) -> Result < u32 , LinuxI2CError > {
338
+ fn transfer ( & mut self , msgs : & mut [ Self :: Message ] ) -> Result < u32 , LinuxI2CError > {
339
339
ffi:: i2c_rdwr ( self . as_raw_fd ( ) , msgs) . map_err ( From :: from)
340
340
}
341
341
}
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ where
152
152
type Message = MockI2CMessage < ' a > ;
153
153
154
154
/// Issue the provided sequence of I2C transactions
155
- fn transfer ( & mut self , messages : & ' a mut [ Self :: Message ] ) -> Result < u32 , Self :: Error > {
155
+ fn transfer ( & mut self , messages : & mut [ Self :: Message ] ) -> Result < u32 , Self :: Error > {
156
156
for msg in messages. iter_mut ( ) {
157
157
match & mut msg. msg_type {
158
158
MessageType :: Read ( data) => self . read ( data) ?,
You can’t perform that action at this time.
0 commit comments