summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-09-04 20:38:11 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-09-04 20:38:11 -0300
commit2c9e4b9a873322a993ef5bf8b425f64e8e86c00c (patch)
treea50023e343341c58881ef4fb33574983c536f315
parent8cf9a5eeb4bcd5b97594ecf2a26aa02d01737a2a (diff)
Fix errors panicking HEAD default
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs9
2 files changed, 7 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 703f9a5..793c144 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "serde_transmute"
-version = "0.1.3"
+version = "0.1.4"
 edition = "2021"
 description = "Transmute objects through serde."
 license = "MIT OR Apache-2.0"
diff --git a/src/lib.rs b/src/lib.rs
index d254b6f..6c1f04d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -40,7 +40,8 @@ pub struct TransmuteError(());
 
 impl std::fmt::Display for TransmuteError {
     fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
-        todo!()
+        // FIXME not needed by Datafu.
+        Ok(())
     }
 }
 
@@ -49,13 +50,15 @@ impl std::error::Error for TransmuteError {
 
 impl serde::de::Error for TransmuteError {
     fn custom<T: std::fmt::Display>(t: T) -> Self {
-        todo!()
+        // FIXME not needed by Datafu.
+        TransmuteError(())
     }
 }
 
 impl serde::ser::Error for TransmuteError {
     fn custom<T: std::fmt::Display>(t: T) -> Self {
-        todo!()
+        // FIXME not needed by Datafu.
+        TransmuteError(())
     }
 }