Skip to content

Commit c170139

Browse files
committed
build: fix clippy warning
1 parent d4c2de9 commit c170139

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl BuildDirectory {
156156
let res = f(&Build {
157157
dir: self,
158158
toolchain,
159-
sandbox: sandbox.clone(),
159+
sandbox,
160160
})?;
161161

162162
remove_dir_all(&source_dir)?;

tests/buildtest/inside_docker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ impl CommandExt for Command {
8080
if !out.status.success() {
8181
eprintln!("failed to execute command {:?}", self);
8282
eprintln!("stdout:");
83-
std::io::stderr().lock().write(&out.stdout)?;
83+
std::io::stderr().lock().write_all(&out.stdout)?;
8484
eprintln!("stderr:");
85-
std::io::stderr().lock().write(&out.stderr)?;
85+
std::io::stderr().lock().write_all(&out.stderr)?;
8686
failure::bail!("failed to execute command {:?}", self);
8787
}
8888
Ok(())

tests/integration/crates_git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn test_fetch() -> Result<(), Error> {
3737

3838
// Make a new commit
3939
repo.commit(&workspace)?;
40-
let new_commit = repo.last_commit_sha.clone().unwrap();
40+
let new_commit = repo.last_commit_sha.unwrap();
4141
assert_ne!(initial_commit, new_commit);
4242
assert_eq!(initial_commit, krate.git_commit(&workspace).unwrap());
4343
assert_eq!(initial_commit, cloned_commit()?);

0 commit comments

Comments
 (0)