aboutsummaryrefslogtreecommitdiff
path: root/bin/src/err.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-11-04 13:16:03 +0000
committerAkshay <[email protected]>2021-11-04 13:16:03 +0000
commitc0487a3b8bb3d9df1e290579bbbd425f7707b5bd (patch)
tree3be2fa52ec7e48d094f45e3c8f85b1819bac6e66 /bin/src/err.rs
parent5b87c6feb3e4a2fcc30ad94125be3dcd4e554754 (diff)
use ignore crate to enforce simpler ignore rulesfix-ignores
- also respects .gitignore by default - adds new flag `-u` to unrestrict statix
Diffstat (limited to 'bin/src/err.rs')
-rw-r--r--bin/src/err.rs6
1 files changed, 3 insertions, 3 deletions
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 @@
1use std::io; 1use std::io;
2 2
3use globset::ErrorKind; 3// use globset::ErrorKind;
4// use rnix::parser::ParseError; 4// use rnix::parser::ParseError;
5use thiserror::Error; 5use thiserror::Error;
6 6
7#[derive(Error, Debug)] 7#[derive(Error, Debug)]
8pub enum ConfigErr { 8pub enum ConfigErr {
9 #[error("error parsing glob `{0:?}`: {1}")] 9 #[error("error parsing ignore list `{0}`")]
10 InvalidGlob(Option<String>, ErrorKind), 10 InvalidGlob(#[from] ignore::Error),
11 #[error("path error: {0}")] 11 #[error("path error: {0}")]
12 InvalidPath(#[from] io::Error), 12 InvalidPath(#[from] io::Error),
13 #[error("unable to parse `{0}` as line and column")] 13 #[error("unable to parse `{0}` as line and column")]