From 33bb3cf8651b07b0c15f8bba63b2dc2f51a4e0e1 Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Wed, 27 Nov 2024 19:42:13 +0100 Subject: stable rust compatibility --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 0318210..2e63dd8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,3 @@ -#![feature(iterator_try_collect)] - use anyhow::{anyhow, Result}; use clap::Parser; use sha2::{Digest, Sha512_256}; @@ -111,7 +109,7 @@ where let tree = typed_sled::Tree::<[u8; 32], E::Embedding>::open(&db, E::NAME); // find cached embeddings - let mut embeds: Vec<_> = args + let mut embeds = args .images .iter() .map(|path| { @@ -119,7 +117,7 @@ where let r: Result> = tree.get(&h).map_err(|e| e.into()); r }) - .try_collect()?; + .collect::>>()?; // find indices of missing embeddings let missing_embeds_indices: Vec<_> = embeds -- cgit v1.2.3-70-g09d2