|
35 | 35 | { |
36 | 36 | type Value = Series<T>; |
37 | 37 |
|
38 | | - fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
| 38 | + fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { |
39 | 39 | formatter.write_str("struct Series") |
40 | 40 | } |
41 | 41 |
|
@@ -130,7 +130,7 @@ where |
130 | 130 | { |
131 | 131 | type Value = TaggedSeries<TAG, T>; |
132 | 132 |
|
133 | | - fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
| 133 | + fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { |
134 | 134 | formatter.write_str("struct TaggedSeries") |
135 | 135 | } |
136 | 136 |
|
@@ -230,7 +230,7 @@ where |
230 | 230 | { |
231 | 231 | type Value = Vec<T>; |
232 | 232 |
|
233 | | - fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
| 233 | + fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { |
234 | 234 | write!(formatter, "an array of arrays") |
235 | 235 | } |
236 | 236 |
|
@@ -287,7 +287,7 @@ where |
287 | 287 | { |
288 | 288 | type Value = T; |
289 | 289 |
|
290 | | - fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
| 290 | + fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { |
291 | 291 | formatter.write_str("array") |
292 | 292 | } |
293 | 293 |
|
@@ -391,7 +391,7 @@ mod tests { |
391 | 391 | fn test_deserialize_cow() { |
392 | 392 | // Unfortunately, Cow is not automatically borrowed, |
393 | 393 | // so this is basically equivalent to String, String |
394 | | - let result = serde_json::from_str::<Series<HashMap<Cow<str>, Cow<str>>>>(TEST_DATA); |
| 394 | + let result = serde_json::from_str::<Series<HashMap<Cow<'_, str>, Cow<'_, str>>>>(TEST_DATA); |
395 | 395 | assert!(result.is_ok()); |
396 | 396 | assert_eq!( |
397 | 397 | EqSeries::from(result.unwrap()), |
@@ -429,7 +429,7 @@ mod tests { |
429 | 429 | bar: &'a str, |
430 | 430 | } |
431 | 431 |
|
432 | | - let result = serde_json::from_str::<Series<BorrowingStruct>>(TEST_DATA); |
| 432 | + let result = serde_json::from_str::<Series<BorrowingStruct<'_>>>(TEST_DATA); |
433 | 433 | assert!(result.is_ok(), "{}", result.unwrap_err()); |
434 | 434 | assert_eq!( |
435 | 435 | EqSeries::from(result.unwrap()), |
|
0 commit comments