Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

417 B
Raw Blame
pub(super) mod caches;
pub(super) mod clip;
pub(super) mod clusters;
pub(super) mod faces;
pub(super) mod filedata;
mod helpers;
pub(super) mod meta;
pub(super) mod persons;
pub(super) mod pets;

use std::collections::HashSet;

fn unique_in_order(ids: &[String]) -> Vec<&str> {
    let mut seen = HashSet::new();
    ids.iter()
        .map(String::as_str)
        .filter(|id| seen.insert(*id))
        .collect()
}