Skip to content

Commit bccbf90

Browse files
committed
fix clippy and wrong order of commands on /ci diff
1 parent 4f5fa5b commit bccbf90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/diff.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
with:
5656
tool: git-delta
5757

58-
- run: cargo regress diff ${{ matrix.command }} --use-pager-directly
58+
- run: cargo regress diff --use-pager-directly ${{ matrix.command }}
5959
env:
6060
GH_TOKEN: ${{ github.token }}
6161
GITHUB_PR: ${{ matrix.pr }}

ci/svd2rust-regress/src/svd_test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use svd2rust::{util::ToSanitizedCase, Target};
44
use crate::{command::CommandExt, tests::TestCase, Opts, TestOpts};
55
use std::io::prelude::*;
66
use std::path::PathBuf;
7-
use std::process::{Command, Output};
7+
use std::process::Command;
88
use std::{
99
fmt::Write as _,
1010
fs::{self, File, OpenOptions},
@@ -340,7 +340,7 @@ impl TestCase {
340340
src_files.sort();
341341

342342
for entry in src_files {
343-
let output = Command::new(rustfmt_bin_path)
343+
Command::new(rustfmt_bin_path)
344344
.arg(entry)
345345
.args(["--edition", "2021"])
346346
.capture_outputs(

0 commit comments

Comments
 (0)