File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ assert_hex = "0.4.1"
47
47
clap = { version = " 3.1.6" , features = [" derive" ] }
48
48
envconfig = " 0.10.0"
49
49
rstest = { version = " 0.12.0" , default-features = false }
50
+ rustversion = " 1.0.16"
50
51
51
52
[features ]
52
53
default = [" libudev" ]
Original file line number Diff line number Diff line change @@ -193,6 +193,16 @@ fn loopback_standard<'a>(
193
193
}
194
194
}
195
195
196
+ #[ rustversion:: before( 1.63 ) ]
197
+ fn loopback_split < ' a > (
198
+ _port : & mut Box < dyn SerialPort > ,
199
+ _read_stats : & mut Stats < ' a > ,
200
+ _write_stats : & mut Stats < ' a > ,
201
+ ) {
202
+ unimplemented ! ( "requires Rust 1.63 or later" ) ;
203
+ }
204
+
205
+ #[ rustversion:: since( 1.63 ) ]
196
206
fn loopback_split < ' a > (
197
207
port : & mut Box < dyn SerialPort > ,
198
208
read_stats : & mut Stats < ' a > ,
You can’t perform that action at this time.
0 commit comments