diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2023-04-08 22:30:45 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2023-04-08 22:30:45 -0300 |
commit | 5693d84c79c5a460582f8c1563889970471eebf4 (patch) | |
tree | a37d791b2e45b50986e13eac07c21fcaa6e474f8 /src/vm | |
parent | 41254c58c9fface69f7db39b5236a7aed319047c (diff) |
More clean up
Diffstat (limited to 'src/vm')
-rw-r--r-- | src/vm/de/mod.rs | 1 | ||||
-rw-r--r-- | src/vm/de/unpacker.rs | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/vm/de/mod.rs b/src/vm/de/mod.rs index 3cba18a..45274eb 100644 --- a/src/vm/de/mod.rs +++ b/src/vm/de/mod.rs @@ -23,7 +23,6 @@ use super::SerdeObject; use super::Type; use super::Value; use crate::errors::MatchError; -use crate::errors::QueryError; mod unpacker; diff --git a/src/vm/de/unpacker.rs b/src/vm/de/unpacker.rs index 8b16aa3..ce2e0d0 100644 --- a/src/vm/de/unpacker.rs +++ b/src/vm/de/unpacker.rs @@ -9,7 +9,7 @@ use std::collections::hash_map::IntoIter as HMIntoIter; use serde::de::IntoDeserializer; use serde::de::value::StrDeserializer; -use crate::errors::QueryError; +use crate::errors::UnpackError; use crate::vm::Pack; /// A `Deserializer` for Datafu output. @@ -54,7 +54,7 @@ impl<'pat, 'de> Unpacker<'pat, 'de> { } impl<'pat, 'de> serde::de::SeqAccess<'de> for Unpacker<'pat, 'de> { - type Error = QueryError; + type Error = UnpackError; fn next_element_seed<T: serde::de::DeserializeSeed<'de>>( &mut self, @@ -81,7 +81,7 @@ impl Drop for UnpackerFields<'_, '_, '_> { } impl<'pat, 'de> serde::de::MapAccess<'de> for UnpackerFields<'_, 'pat, 'de> { - type Error = QueryError; + type Error = UnpackError; fn next_key_seed<T: serde::de::DeserializeSeed<'de>>( &mut self, seed: T, @@ -108,7 +108,7 @@ impl<'pat, 'de> serde::de::MapAccess<'de> for UnpackerFields<'_, 'pat, 'de> { } impl<'pat, 'de> serde::Deserializer<'de> for &mut Unpacker<'pat, 'de> { - type Error = QueryError; + type Error = UnpackError; fn deserialize_any<V>(self, _: V) -> Result<V::Value, Self::Error> where V: serde::de::Visitor<'de> { todo!() } fn deserialize_bool<V>(self, _: V) -> Result<V::Value, Self::Error> where V: serde::de::Visitor<'de> { todo!() } fn deserialize_i8<V>(self, _: V) -> Result<V::Value, Self::Error> where V: serde::de::Visitor<'de> { todo!() } @@ -192,7 +192,7 @@ impl<'pat, 'de> serde::Deserializer<'de> for &mut Unpacker<'pat, 'de> { } impl<'pat, 'de> serde::Deserializer<'de> for Unpacker<'pat, 'de> { - type Error = QueryError; + type Error = UnpackError; fn deserialize_any<V>(self, _: V) -> Result<V::Value, Self::Error> where V: serde::de::Visitor<'de> { todo!() } fn deserialize_bool<V>(self, _: V) -> Result<V::Value, Self::Error> where V: serde::de::Visitor<'de> { todo!() } fn deserialize_i8<V>(self, _: V) -> Result<V::Value, Self::Error> where V: serde::de::Visitor<'de> { todo!() } |