We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92656d0 commit 461b65eCopy full SHA for 461b65e
1 file changed
src/decode.rs
@@ -141,28 +141,14 @@ impl<'de, 'a> Visitor<'de> for JsonValue {
141
where
142
E: de::Error,
143
{
144
- #[cfg(target_os = "windows")]
145
- {
146
- Ok(ffi!(PyLong_FromLongLong(value)))
147
- }
148
- #[cfg(not(target_os = "windows"))]
149
150
- Ok(ffi!(PyLong_FromLong(value)))
151
+ Ok(ffi!(PyLong_FromLongLong(value)))
152
}
153
154
fn visit_u64<E>(self, value: u64) -> Result<Self::Value, E>
155
156
157
158
159
160
- Ok(ffi!(PyLong_FromUnsignedLongLong(value)))
161
162
163
164
- Ok(ffi!(PyLong_FromUnsignedLong(value)))
165
+ Ok(ffi!(PyLong_FromUnsignedLongLong(value)))
166
167
168
fn visit_f64<E>(self, value: f64) -> Result<Self::Value, E>
0 commit comments