We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde8795 commit d62c9b8Copy full SHA for d62c9b8
src/main.rs
@@ -75,18 +75,20 @@ impl<'de> Deserialize<'de> for Rpc {
75
}
76
77
78
+// FIXME: Workaround for rust-lang/rust#55779. Move back to the impl when fixed.
79
+#[derive(Deserialize)]
80
+#[allow(unused)]
81
+struct InnerRpc {
82
+ method: String,
83
+ params: Vec<String>,
84
+}
85
+
86
#[cfg(feature = "json-rpc")]
87
impl<'de> Deserialize<'de> for Rpc {
88
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
89
where
90
D: serde::Deserializer<'de>,
91
{
- #[derive(Deserialize)]
- struct InnerRpc {
- method: String,
- params: Vec<String>,
- }
-
92
let (id, rpc): (u64, InnerRpc) = Deserialize::deserialize(deserializer)?;
93
94
Ok(Rpc {
0 commit comments