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"
4747clap = { version = " 3.1.6" , features = [" derive" ] }
4848envconfig = " 0.10.0"
4949rstest = { version = " 0.12.0" , default-features = false }
50+ rustversion = " 1.0.16"
5051
5152[features ]
5253default = [" libudev" ]
Original file line number Diff line number Diff line change @@ -193,6 +193,16 @@ fn loopback_standard<'a>(
193193 }
194194}
195195
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 ) ]
196206fn loopback_split < ' a > (
197207 port : & mut Box < dyn SerialPort > ,
198208 read_stats : & mut Stats < ' a > ,
You can’t perform that action at this time.
0 commit comments