chiark / gitweb /
actix: add Debug bound to Deserialize trait for Parse
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Mar 2022 21:54:34 +0000 (22:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Mar 2022 23:50:50 +0000 (00:50 +0100)
We don't actually use this but it makes some dbg!() work if in case we
need them.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/main.rs

index fca559f0ac889e34f33e36b783b57c951432ce0c..4812fdb540f8eb6a30911cea4ecf0a14a8515fe9 100644 (file)
@@ -222,8 +222,8 @@ where T: FromStr,
 pub struct Parse<T: FromStr>(pub T);
 
 impl<'de,T> Deserialize<'de> for Parse<T>
-where T: FromStr,
-      T::Err: std::error::Error,
+where T: FromStr + Debug,
+      T::Err: std::error::Error + Debug,
 {
   #[throws(D::Error)]
   fn deserialize<D: Deserializer<'de>>(d: D) -> Self {