Skip to content

Commit 4062ba0

Browse files
committed
Fix clippy
1 parent 060cf48 commit 4062ba0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/report/archives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub fn write_logs_archives<DB: ReadResults, W: ReportWriter>(
163163
for (comparison, archive) in by_comparison.drain(..) {
164164
let data = archive.into_inner()?.finish()?;
165165
dest.write_bytes(
166-
&format!("logs-archives/{}.tar.gz", comparison),
166+
format!("logs-archives/{}.tar.gz", comparison),
167167
data,
168168
&"application/gzip".parse().unwrap(),
169169
EncodingType::Plain,

src/report/html.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fn write_report<W: ReportWriter>(
123123
result_names.len() - 1
124124
});
125125
runs[pos] = Some(BuildTestResultHTML {
126-
res: *idx as usize,
126+
res: *idx,
127127
log: run.log.clone(),
128128
});
129129
}

src/report/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,13 +542,13 @@ impl ReportWriter for FileWriter {
542542
_: EncodingType,
543543
) -> Fallible<()> {
544544
self.create_prefix(path.as_ref())?;
545-
fs::write(&self.0.join(path.as_ref()), &b)?;
545+
fs::write(self.0.join(path.as_ref()), b)?;
546546
Ok(())
547547
}
548548

549549
fn write_string<P: AsRef<Path>>(&self, path: P, s: Cow<str>, _: &Mime) -> Fallible<()> {
550550
self.create_prefix(path.as_ref())?;
551-
fs::write(&self.0.join(path.as_ref()), s.as_ref().as_bytes())?;
551+
fs::write(self.0.join(path.as_ref()), s.as_ref().as_bytes())?;
552552
Ok(())
553553
}
554554
}

src/runner/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ pub(super) fn test_rustdoc<DB: WriteResults>(
386386

387387
// Make sure to remove the built documentation
388388
// There is no point in storing it after the build is done
389-
remove_dir_all(&build_env.host_target_dir().join("doc"))?;
389+
remove_dir_all(build_env.host_target_dir().join("doc"))?;
390390

391391
res
392392
};

0 commit comments

Comments
 (0)