chore: update dependencies in Cargo.lock
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user