From 5693d84c79c5a460582f8c1563889970471eebf4 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 8 Apr 2023 22:30:45 -0300 Subject: More clean up --- src/vm/de/unpacker.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/vm/de/unpacker.rs') 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>( &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>( &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(self, _: V) -> Result where V: serde::de::Visitor<'de> { todo!() } fn deserialize_bool(self, _: V) -> Result where V: serde::de::Visitor<'de> { todo!() } fn deserialize_i8(self, _: V) -> Result 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(self, _: V) -> Result where V: serde::de::Visitor<'de> { todo!() } fn deserialize_bool(self, _: V) -> Result where V: serde::de::Visitor<'de> { todo!() } fn deserialize_i8(self, _: V) -> Result where V: serde::de::Visitor<'de> { todo!() } -- cgit 1.4.1