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

This commit is contained in:
MarekSpodBiedry committed 2026-10-09 11:34:11 +02:00
1 parent a5d92c231c
commit fee28f3a1b
1 file changed
+1 -1
+1 -1
View File
@@ -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(())
}