diff options
Diffstat (limited to 'src/vm/de/unpacker.rs')
-rw-r--r-- | src/vm/de/unpacker.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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!() } |