Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kimono-koans committed Jul 25, 2024
1 parent 52ca3f2 commit 83d3c43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions src/library/utility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use std::borrow::Cow;
use std::fs::FileType;
use std::io::Write;
use std::iter::Iterator;
use std::ops::Deref;
use std::path::{Path, PathBuf};
use std::time::SystemTime;
use time::{format_description, OffsetDateTime, UtcOffset};
Expand Down Expand Up @@ -346,7 +345,6 @@ pub fn path_is_filter_dir(path: &Path) -> bool {
GLOBAL_CONFIG
.dataset_collection
.filter_dirs
.deref()
.iter()
.any(|filter_dir| path == filter_dir)
}
Expand Down
7 changes: 1 addition & 6 deletions src/lookup/versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,7 @@ impl<'a> ProximateDatasetAndOptAlts<'a> {
}
#[inline(always)]
pub fn datasets_of_interest(&'a self) -> impl Iterator<Item = &'a Path> {
let alts = self
.opt_alts
.as_deref()
.into_iter()
.flatten()
.map(PathBuf::as_path);
let alts = self.opt_alts.into_iter().flatten().map(PathBuf::as_path);

let base = [self.proximate_dataset].into_iter();

Expand Down

0 comments on commit 83d3c43

Please sign in to comment.