Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

xtask corpus: pass the pinned corpus without an explicit deref (clippy) (#948)

MarekSpodBiedryfee28f3a1b33
diff --git a/xtask/src/corpus.rs b/xtask/src/corpus.rs
index d655cc3a7..be62e6fa6 100644
--- a/xtask/src/corpus.rs
+++ b/xtask/src/corpus.rs
@@ -83,7 +83,7 @@ pub fn fetch_all(local: bool, update: bool) -> Result<(), String> {
/// `corpus/photoshop` when `local`.
fn fetch_pinned(local: bool, update: bool, mut fetch: impl FnMut(&PinnedCorpus, bool, bool) -> Result<(), String>) -> Result<(), String> {
for c in corpus_pins::ALL {
- fetch(*c, local && std::ptr::eq(*c, &corpus_pins::PHOTOSHOP), update)?;
+ fetch(c, local && std::ptr::eq(*c, &corpus_pins::PHOTOSHOP), update)?;
}
Ok(())
}