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

@@ -3,4 +3,4 @@ pub use error_stack::{Report, ResultExt};
#[error("An error occurred")]
pub struct Error;
pub type Result<T, E = error_stack::Report<Error>> = core::result::Result<T, E>;
pub type Result<T, E = Report<Error>> = core::result::Result<T, E>;

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")

View File

@@ -1,6 +1,6 @@
use gpui::{
App, Application, Bounds, Context, FocusHandle, KeyBinding, SharedString, Window, WindowBounds,
WindowOptions, actions, div, img, prelude::*, px, rgb, rgba, size,
App, Application, Bounds, Context, FocusHandle, KeyBinding, Window, WindowBounds,
WindowOptions, actions, div, img, prelude::*, px, rgb, size,
};
use nalgebra::Vector2;
use std::path::PathBuf;