Skip to content

Commit bad405d

Browse files
committed
fix clippy warnings
1 parent 0ff427b commit bad405d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::error::Error;
33
fn main() -> Result<(), Box<dyn Error>> {
44
// This prevents Cargo from rebuilding everything each time a non source code file changes.
55
println!("cargo:rerun-if-changed=build.rs");
6+
println!("cargo::rustc-check-cfg=cfg(docs_rs)");
67

78
let target = std::env::var("TARGET")?;
89

src/crates/git.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl GitRepo {
1818
pub(super) fn git_commit(&self, workspace: &Workspace) -> Option<String> {
1919
let res = Command::new(workspace, "git")
2020
.args(&["rev-parse", "HEAD"])
21-
.cd(&self.cached_path(workspace))
21+
.cd(self.cached_path(workspace))
2222
.run_capture();
2323

2424
match res {

src/tools/binary_crates.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Tool for BinaryCrate {
4747
}
4848

4949
fn install(&self, workspace: &Workspace, fast_install: bool) -> anyhow::Result<()> {
50-
let mut cmd = Command::new(workspace, &Toolchain::MAIN.cargo())
50+
let mut cmd = Command::new(workspace, Toolchain::MAIN.cargo())
5151
.args(&["install", self.crate_name])
5252
.timeout(None);
5353
if fast_install {

0 commit comments

Comments
 (0)