mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-14 19:26:51 -04:00
xtask corpus: pass the pinned corpus without an explicit deref (clippy) (#948)
This commit is contained in:
1 parent
a5d92c231c
commit
fee28f3a1b
1 file changed
+1
-1
+1
-1
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user