File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 42
42
runs-on : ubuntu-latest
43
43
strategy :
44
44
matrix :
45
- rust : [nightly-2022 -11-22 ]
45
+ rust : [nightly-2023 -11-01 ]
46
46
TARGET :
47
47
[x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
48
48
Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
- branches : [ staging, trying, master ]
3
+ branches : [staging, trying, master]
4
4
pull_request :
5
5
6
6
name : Code formatting check
23
23
- uses : actions/checkout@v3
24
24
- uses : dtolnay/rust-toolchain@master
25
25
with :
26
- toolchain : nightly-2022 -11-22
26
+ toolchain : nightly-2023 -11-01
27
27
components : rustfmt
28
28
- run : cargo fmt --all -- --check
29
29
working-directory : embedded-nal-async
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8
8
## [ Unreleased]
9
9
10
10
- [ breaking] ` Dns::get_host_by_address ` now uses ` &mut [u8] ` instead of ` heapless::String ` .
11
+ - [ breaking] Remove unneeded ` where Self: 'a ` bound in ` TcpClient::connect ` .
11
12
12
13
## [ 0.6.0] - 2023-10-03
13
14
Original file line number Diff line number Diff line change @@ -17,21 +17,19 @@ pub trait TcpConnect {
17
17
/// Connect to the given remote host and port.
18
18
///
19
19
/// Returns `Ok` if the connection was successful.
20
- async fn connect < ' a > ( & ' a self , remote : SocketAddr ) -> Result < Self :: Connection < ' a > , Self :: Error >
21
- // This bound is required due to an AFIT limitaton: https://github.com/rust-lang/rust/issues/104908
22
- where
23
- Self : ' a ;
20
+ async fn connect < ' a > ( & ' a self , remote : SocketAddr )
21
+ -> Result < Self :: Connection < ' a > , Self :: Error > ;
24
22
}
25
23
26
24
impl < T : TcpConnect > TcpConnect for & T {
27
25
type Error = T :: Error ;
28
26
29
27
type Connection < ' a > = T :: Connection < ' a > where Self : ' a ;
30
28
31
- async fn connect < ' a > ( & ' a self , remote : SocketAddr ) -> Result < Self :: Connection < ' a > , Self :: Error >
32
- where
33
- Self : ' a ,
34
- {
29
+ async fn connect < ' a > (
30
+ & ' a self ,
31
+ remote : SocketAddr ,
32
+ ) -> Result < Self :: Connection < ' a > , Self :: Error > {
35
33
T :: connect ( self , remote) . await
36
34
}
37
35
}
You can’t perform that action at this time.
0 commit comments