File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -154,19 +154,16 @@ pub struct Test {
154154impl Test {
155155 fn run ( & self , opts : & Opts ) -> Result < ( ) , anyhow:: Error > {
156156 match self {
157- Self { url : Some ( url ) , .. } => { }
157+ Self { url : Some ( _ ) , .. } => { }
158158 Self {
159- svd_file : Some ( svd_file) ,
160- ..
161- } => { }
162- Self {
163- chip : Some ( chip) , ..
159+ svd_file : Some ( _) , ..
164160 } => { }
161+ Self { chip : Some ( _) , .. } => { }
165162 _ => unreachable ! ( "clap should not allow this" ) ,
166163 }
167164 let test = if let ( Some ( url) , Some ( arch) ) = ( & self . url , & self . arch ) {
168165 tests:: TestCase {
169- arch : svd2rust:: Target :: parse ( & arch) ?,
166+ arch : svd2rust:: Target :: parse ( arch) ?,
170167 mfgr : tests:: Manufacturer :: Unknown ,
171168 chip : self
172169 . chip
Original file line number Diff line number Diff line change 11use anyhow:: { anyhow, Context , Result } ;
22use svd2rust:: { util:: Case , Target } ;
33
4- use crate :: { command:: CommandExt , tests:: TestCase , Opts , TestAll } ;
4+ use crate :: { command:: CommandExt , tests:: TestCase , Opts } ;
55use std:: io:: prelude:: * ;
66use std:: path:: PathBuf ;
77use std:: process:: Command ;
You can’t perform that action at this time.
0 commit comments