diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/miette/src/error.rs | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/miette/src/error.rs')
-rw-r--r-- | vendor/miette/src/error.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/miette/src/error.rs b/vendor/miette/src/error.rs deleted file mode 100644 index 56041ca..0000000 --- a/vendor/miette/src/error.rs +++ /dev/null @@ -1,27 +0,0 @@ -use std::io; - -use thiserror::Error; - -use crate::{self as miette, Diagnostic}; - -/** -Error enum for miette. Used by certain operations in the protocol. -*/ -#[derive(Debug, Diagnostic, Error)] -pub enum MietteError { - /// Wrapper around [`std::io::Error`]. This is returned when something went - /// wrong while reading a [`SourceCode`](crate::SourceCode). - #[error(transparent)] - #[diagnostic(code(miette::io_error), url(docsrs))] - IoError(#[from] io::Error), - - /// Returned when a [`SourceSpan`](crate::SourceSpan) extends beyond the - /// bounds of a given [`SourceCode`](crate::SourceCode). - #[error("The given offset is outside the bounds of its Source")] - #[diagnostic( - code(miette::span_out_of_bounds), - help("Double-check your spans. Do you have an off-by-one error?"), - url(docsrs) - )] - OutOfBounds, -} |