summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2022-05-07 13:43:11 +0200
committerGitHub <noreply@github.com>2022-05-07 13:43:11 +0200
commit7334ab45422882686212ed31df2d95c02e7585f1 (patch)
tree4b47bb8a2b21d15211a2e20687d72ca2388ebe0a /src/error.rs
parent719248f1c1a2c1c6723b941d3a58cafccf6e3739 (diff)
Bump to syntect 5.0.0 to e.g. start lazy-loading syntaxes (#2181)
* Bump to syntect 5.0.0 to e.g. start lazy-loading themes Closes #915 Closes #951 Closes #1846 Closes #1854 * Typo fix formated -> formatted * Update CHANGELOG.md
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 54f460e7..f9845138 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -2,11 +2,14 @@ use std::io::Write;
use thiserror::Error;
#[derive(Error, Debug)]
+#[non_exhaustive]
pub enum Error {
#[error(transparent)]
Io(#[from] ::std::io::Error),
#[error(transparent)]
- SyntectError(#[from] ::syntect::LoadingError),
+ SyntectError(#[from] ::syntect::Error),
+ #[error(transparent)]
+ SyntectLoadingError(#[from] ::syntect::LoadingError),
#[error(transparent)]
ParseIntError(#[from] ::std::num::ParseIntError),
#[error(transparent)]