chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39f404b
)
actix: add Debug bound to Deserialize trait for Parse
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 27 Mar 2022 21:54:34 +0000
(22:54 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/daemon/main.rs
b/daemon/main.rs
index fca559f0ac889e34f33e36b783b57c951432ce0c..4812fdb540f8eb6a30911cea4ecf0a14a8515fe9 100644
(file)
--- a/
daemon/main.rs
+++ b/
daemon/main.rs
@@
-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 {