aboutsummaryrefslogtreecommitdiff
path: root/bin/src/err.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-11-04 13:17:28 +0000
committerAkshay <[email protected]>2021-11-04 13:17:28 +0000
commit9ac0957e2836446c2fda5d8f8ff7f869fd5860bd (patch)
tree94fb7cd97fe1b9588a00473e3d79635fec748362 /bin/src/err.rs
parent07d39899d32ed4c7ae822e98f4a8b28c72c48a99 (diff)
Squashed commit of the following:
commit c0487a3b8bb3d9df1e290579bbbd425f7707b5bd Author: Akshay <[email protected]> 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
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")]