chore: update dependencies in Cargo.lock
Some checks failed
build / checks-matrix (push) Successful in 19m20s
build / codecov (push) Failing after 19m18s
docs / docs (push) Failing after 16s
build / checks-build (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-10-08 01:16:33 +05:30
parent 7be28fd81d
commit 935ac583f7
4 changed files with 112 additions and 99 deletions

View File

@@ -22,8 +22,10 @@ pub fn main() -> Result<()> {
// Returns all the children (if a dir) and sister (if an image) files of the input path
fn walker(input: impl AsRef<Path>) -> Vec<PathBuf> {
let mut tb = ignore::types::TypesBuilder::new();
tb.add("image", "*.jpg").expect("Failed to add image type");
tb.add("image", "*.png").expect("Failed to add image type");
gpui::Img::extensions().iter().for_each(|ext| {
tb.add("image", &format!("*.{ext}"))
.expect("Failed to add image type");
});
ignore::WalkBuilder::new(input)
.types(
tb.select("image")