Skip to content

Commit 29ad43c

Browse files
committed
fix warnings in regress
1 parent fe1e230 commit 29ad43c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

ci/svd2rust-regress/src/main.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,19 +154,16 @@ pub struct Test {
154154
impl 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

ci/svd2rust-regress/src/svd_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::{anyhow, Context, Result};
22
use svd2rust::{util::Case, Target};
33

4-
use crate::{command::CommandExt, tests::TestCase, Opts, TestAll};
4+
use crate::{command::CommandExt, tests::TestCase, Opts};
55
use std::io::prelude::*;
66
use std::path::PathBuf;
77
use std::process::Command;

0 commit comments

Comments
 (0)