Skip to content

Commit cd6697b

Browse files
authored
Merge pull request #1955 from TheJokr/patch-1
Add 128-bit integer support to de::IgnoredAny
2 parents 78a9dbc + c162d51 commit cd6697b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

serde/src/de/ignored_any.rs

+16
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,28 @@ impl<'de> Visitor<'de> for IgnoredAny {
130130
Ok(IgnoredAny)
131131
}
132132

133+
serde_if_integer128! {
134+
#[inline]
135+
fn visit_i128<E>(self, x: i128) -> Result<Self::Value, E> {
136+
let _ = x;
137+
Ok(IgnoredAny)
138+
}
139+
}
140+
133141
#[inline]
134142
fn visit_u64<E>(self, x: u64) -> Result<Self::Value, E> {
135143
let _ = x;
136144
Ok(IgnoredAny)
137145
}
138146

147+
serde_if_integer128! {
148+
#[inline]
149+
fn visit_u128<E>(self, x: u128) -> Result<Self::Value, E> {
150+
let _ = x;
151+
Ok(IgnoredAny)
152+
}
153+
}
154+
139155
#[inline]
140156
fn visit_f64<E>(self, x: f64) -> Result<Self::Value, E> {
141157
let _ = x;

0 commit comments

Comments
 (0)