From 9ac0957e2836446c2fda5d8f8ff7f869fd5860bd Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 4 Nov 2021 18:47:28 +0530 Subject: Squashed commit of the following: commit c0487a3b8bb3d9df1e290579bbbd425f7707b5bd Author: Akshay Date: Thu Nov 4 18:46:03 2021 +0530 use ignore crate to enforce simpler ignore rules - also respects .gitignore by default - adds new flag `-u` to unrestrict statix --- bin/src/err.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/src/err.rs') diff --git a/bin/src/err.rs b/bin/src/err.rs index 1e52c2b..b776d9f 100644 --- a/bin/src/err.rs +++ b/bin/src/err.rs @@ -1,13 +1,13 @@ use std::io; -use globset::ErrorKind; +// use globset::ErrorKind; // use rnix::parser::ParseError; use thiserror::Error; #[derive(Error, Debug)] pub enum ConfigErr { - #[error("error parsing glob `{0:?}`: {1}")] - InvalidGlob(Option, ErrorKind), + #[error("error parsing ignore list `{0}`")] + InvalidGlob(#[from] ignore::Error), #[error("path error: {0}")] InvalidPath(#[from] io::Error), #[error("unable to parse `{0}` as line and column")] -- cgit v1.2.3