Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Nov 6, 2024
1 parent 4e1fa8f commit 1c40e27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/compiler/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ macro_rules! take_arg {
ArgInfo::TakeArg(
$s,
|arg: OsString| $vtype::process(arg).map($variant),
ArgDisposition::$d(Some($x as u8)),
ArgDisposition::$d(Some(b'=')),
)
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ impl pkg::ToolchainPackager for CToolchainPackager {
// files by path.
let named_file = |kind: &str, name: &str| -> Option<PathBuf> {
let mut output = process::Command::new(&self.executable)
.arg(&format!("-print-{}-name={}", kind, name))
.arg(format!("-print-{}-name={}", kind, name))
.output()
.ok()?;
debug!(
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3560,7 +3560,7 @@ proc_macro false
"./src/lib.rs",
"--emit=dep-info,link",
"--out-dir",
"/out",
"/out"
);

assert_eq!(h.gcno, Some("foo.gcno".into()));
Expand All @@ -3575,7 +3575,7 @@ proc_macro false
"-C",
"extra-filename=-a1b6419f8321841f",
"--out-dir",
"/out",
"/out"
);

assert_eq!(h.gcno, Some("foo-a1b6419f8321841f.gcno".into()));
Expand Down
1 change: 0 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ use std::task::{Context, Poll, Waker};
use std::time::Duration;
#[cfg(feature = "dist-client")]
use std::time::Instant;
use std::u64;
use tokio::sync::Mutex;
use tokio::sync::RwLock;
use tokio::{
Expand Down

0 comments on commit 1c40e27

Please sign in to comment.