1737 Commits

Author SHA1 Message Date
David Tolnay
42ab31feac
Update ui test suite to nightly-2024-10-31 2024-10-30 19:18:57 -07:00
David Tolnay
86d933cfd7
Release 1.0.132 v1.0.132 2024-10-19 09:32:49 -07:00
David Tolnay
f45b422a3b
Merge pull request #1206 from dtolnay/hasnext
Improve performance of seq/map peeks
2024-10-19 09:32:23 -07:00
David Tolnay
f2082d2a04
Clearer order of comparisons
We look at seq.first/map.first only once.
2024-10-19 09:23:00 -07:00
David Tolnay
0f54a1a0df
Handle early return sooner on eof in seq or map
This matches how peeking is done within deserialize_any and other
Deserializer methods
2024-10-19 09:22:34 -07:00
David Tolnay
2a4cb44f7c
Rearrange 'match peek' 2024-10-19 09:21:55 -07:00
David Tolnay
4cb90ce66d
Merge pull request #1205 from dtolnay/hasnext
Reduce duplicative instantiation of logic in SeqAccess and MapAccess
2024-10-19 09:20:49 -07:00
David Tolnay
b71ccd2d8f
Reduce duplicative instantiation of logic in SeqAccess and MapAccess 2024-10-19 08:50:31 -07:00
David Tolnay
a810ba9850
Release 1.0.131 v1.0.131 2024-10-18 15:50:51 -07:00
David Tolnay
0d084c5038
Touch up PR 1135 2024-10-18 15:49:44 -07:00
David Tolnay
b4954a9561
Merge pull request #1135 from swlynch99/map-deserializer
Implement `Deserializer` for `Map<String, Value>` and `&Map<String, Value>`
2024-10-18 15:49:00 -07:00
David Tolnay
2825e15cf4
Release 1.0.130 v1.0.130 2024-10-18 10:34:39 -07:00
David Tolnay
2a2adb13a9
Merge pull request #1204 from dtolnay/u128
Add Number u128 conversions
2024-10-18 10:33:14 -07:00
David Tolnay
d86703f33d
Add Number u128 conversions 2024-10-18 10:27:08 -07:00
David Tolnay
7e45e3df35
Merge pull request #1203 from dtolnay/i128err
Return error instead of Null if i128 deserialized to Value is out of range
2024-10-18 10:26:55 -07:00
David Tolnay
be68eabf91
Return error instead of Null if i128 deserialized to Value is out of range 2024-10-18 10:21:29 -07:00
David Tolnay
95f55f3802
Delete Number conversion example code
All of these are actually calling methods on Value, not Number. The
example code on Value methods is adequate without duplicating them to
Number.
2024-10-18 10:21:05 -07:00
David Tolnay
1a944f47ed
Delete Value::as_i128
This is adequately supported by `value.as_number().and_then(Number::as_i128)`
2024-10-18 10:09:52 -07:00
David Tolnay
fb12a9db76
Update Number::from_i128 documentation regarding bounds 2024-10-18 09:47:24 -07:00
David Tolnay
b4df0f8251
Merge pull request #1202 from dtolnay/useprimitive
Delete unneeded imports in doc code
2024-10-18 08:56:34 -07:00
David Tolnay
f3e2c48cad
Delete unneeded imports in doc code 2024-10-18 08:29:32 -07:00
David Tolnay
e64c368505
Delete #[inline] from some Number methods 2024-10-18 08:26:22 -07:00
David Tolnay
be67b7efb1
Merge pull request #1201 from dtolnay/from128
Allow arbitrarily large i128 in arbitrary_precision mode
2024-10-18 08:25:13 -07:00
David Tolnay
f69950635e
Allow arbitrarily large i128 in arbitrary_precision mode 2024-10-18 08:18:10 -07:00
David Tolnay
c3149efd62
Flatten logic in Number::from_i128 2024-10-18 08:18:09 -07:00
David Tolnay
22973d2783
Merge pull request #1200 from dtolnay/from128
Delete unreachable branch from Number::from_i128
2024-10-18 08:17:51 -07:00
David Tolnay
eb9ce291a4
Delete unreachable branch from Number::from_i128 2024-10-18 08:11:11 -07:00
David Tolnay
5fab5fc499
Format PR 1141 with rustfmt 2024-10-18 08:05:49 -07:00
David Tolnay
29f4a47416
Merge pull request #1141 from druide/master
Add i128 deserialization
2024-10-18 07:59:42 -07:00
David Tolnay
8ceb8248b2
Improve rendering of sort_keys documentation 2024-10-18 07:13:53 -07:00
David Tolnay
fe499e869e
Release 1.0.129 v1.0.129 2024-10-17 20:03:08 +02:00
David Tolnay
2679e3016a
Merge pull request #1199 from dtolnay/sort
Add methods on Map and Value to destroy preserved ordering
2024-10-17 11:01:59 -07:00
David Tolnay
c1a06c100e
Add methods on Map and Value to destroy preserved ordering 2024-10-17 19:54:03 +02:00
David Tolnay
faab2e8d2f
Ignore needless_lifetimes clippy lint
warning: the following explicit lifetimes could be elided: 'a
        --> src/de.rs:2169:11
         |
    2169 | impl<'de, 'a, R> MapKey<'a, R>
         |           ^^            ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
         = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all`
         = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]`
    help: elide the lifetimes
         |
    2169 - impl<'de, 'a, R> MapKey<'a, R>
    2169 + impl<'de, R> MapKey<'_, R>
         |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/de.rs:2176:11
         |
    2176 | impl<'de, 'a, R> de::Deserializer<'de> for MapKey<'a, R>
         |           ^^                                      ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    2176 - impl<'de, 'a, R> de::Deserializer<'de> for MapKey<'a, R>
    2176 + impl<'de, R> de::Deserializer<'de> for MapKey<'_, R>
         |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/error.rs:467:6
        |
    467 | impl<'a> Display for JsonUnexpected<'a> {
        |      ^^                             ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    467 - impl<'a> Display for JsonUnexpected<'a> {
    467 + impl Display for JsonUnexpected<'_> {
        |

    warning: the following explicit lifetimes could be elided: 'a
      --> src/ser.rs:31:6
       |
    31 | impl<'a, W> Serializer<W, PrettyFormatter<'a>>
       |      ^^                                   ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
       |
    31 - impl<'a, W> Serializer<W, PrettyFormatter<'a>>
    31 + impl<W> Serializer<W, PrettyFormatter<'_>>
       |

    warning: the following explicit lifetimes could be elided: 'ser
       --> src/ser.rs:420:14
        |
    420 |         impl<'ser, W, F> Write for Adapter<'ser, W, F>
        |              ^^^^                          ^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    420 -         impl<'ser, W, F> Write for Adapter<'ser, W, F>
    420 +         impl<W, F> Write for Adapter<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:480:6
        |
    480 | impl<'a, W, F> ser::SerializeSeq for Compound<'a, W, F>
        |      ^^                                       ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    480 - impl<'a, W, F> ser::SerializeSeq for Compound<'a, W, F>
    480 + impl<W, F> ser::SerializeSeq for Compound<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:527:6
        |
    527 | impl<'a, W, F> ser::SerializeTuple for Compound<'a, W, F>
        |      ^^                                         ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    527 - impl<'a, W, F> ser::SerializeTuple for Compound<'a, W, F>
    527 + impl<W, F> ser::SerializeTuple for Compound<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:549:6
        |
    549 | impl<'a, W, F> ser::SerializeTupleStruct for Compound<'a, W, F>
        |      ^^                                               ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    549 - impl<'a, W, F> ser::SerializeTupleStruct for Compound<'a, W, F>
    549 + impl<W, F> ser::SerializeTupleStruct for Compound<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:571:6
        |
    571 | impl<'a, W, F> ser::SerializeTupleVariant for Compound<'a, W, F>
        |      ^^                                                ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    571 - impl<'a, W, F> ser::SerializeTupleVariant for Compound<'a, W, F>
    571 + impl<W, F> ser::SerializeTupleVariant for Compound<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:609:6
        |
    609 | impl<'a, W, F> ser::SerializeMap for Compound<'a, W, F>
        |      ^^                                       ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    609 - impl<'a, W, F> ser::SerializeMap for Compound<'a, W, F>
    609 + impl<W, F> ser::SerializeMap for Compound<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:681:6
        |
    681 | impl<'a, W, F> ser::SerializeStruct for Compound<'a, W, F>
        |      ^^                                          ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    681 - impl<'a, W, F> ser::SerializeStruct for Compound<'a, W, F>
    681 + impl<W, F> ser::SerializeStruct for Compound<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:727:6
        |
    727 | impl<'a, W, F> ser::SerializeStructVariant for Compound<'a, W, F>
        |      ^^                                                 ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    727 - impl<'a, W, F> ser::SerializeStructVariant for Compound<'a, W, F>
    727 + impl<W, F> ser::SerializeStructVariant for Compound<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/ser.rs:793:6
        |
    793 | impl<'a, W, F> ser::Serializer for MapKeySerializer<'a, W, F>
        |      ^^                                             ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    793 - impl<'a, W, F> ser::Serializer for MapKeySerializer<'a, W, F>
    793 + impl<W, F> ser::Serializer for MapKeySerializer<'_, W, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/ser.rs:1157:6
         |
    1157 | impl<'a, W: io::Write, F: Formatter> ser::Serializer for NumberStrEmitter<'a, W, F> {
         |      ^^                                                                   ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1157 - impl<'a, W: io::Write, F: Formatter> ser::Serializer for NumberStrEmitter<'a, W, F> {
    1157 + impl<W: io::Write, F: Formatter> ser::Serializer for NumberStrEmitter<'_, W, F> {
         |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/ser.rs:1334:6
         |
    1334 | impl<'a, W: io::Write, F: Formatter> ser::Serializer for RawValueStrEmitter<'a, W, F> {
         |      ^^                                                                     ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1334 - impl<'a, W: io::Write, F: Formatter> ser::Serializer for RawValueStrEmitter<'a, W, F> {
    1334 + impl<W: io::Write, F: Formatter> ser::Serializer for RawValueStrEmitter<'_, W, F> {
         |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/ser.rs:1951:6
         |
    1951 | impl<'a> Default for PrettyFormatter<'a> {
         |      ^^                              ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1951 - impl<'a> Default for PrettyFormatter<'a> {
    1951 + impl Default for PrettyFormatter<'_> {
         |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/ser.rs:1957:6
         |
    1957 | impl<'a> Formatter for PrettyFormatter<'a> {
         |      ^^                                ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1957 - impl<'a> Formatter for PrettyFormatter<'a> {
    1957 + impl Formatter for PrettyFormatter<'_> {
         |

    warning: the following explicit lifetimes could be elided: 'a, 'b
       --> src/value/mod.rs:227:14
        |
    227 |         impl<'a, 'b> io::Write for WriterFormatter<'a, 'b> {
        |              ^^  ^^                                ^^  ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    227 -         impl<'a, 'b> io::Write for WriterFormatter<'a, 'b> {
    227 +         impl io::Write for WriterFormatter<'_, '_> {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/value/de.rs:479:6
        |
    479 | impl<'de> IntoDeserializer<'de, Error> for Value {
        |      ^^^                   ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    479 - impl<'de> IntoDeserializer<'de, Error> for Value {
    479 + impl IntoDeserializer<'_, Error> for Value {
        |

    warning: the following explicit lifetimes could be elided: 'de
        --> src/value/de.rs:1266:6
         |
    1266 | impl<'de> Visitor<'de> for KeyClassifier {
         |      ^^^          ^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1266 - impl<'de> Visitor<'de> for KeyClassifier {
    1266 + impl Visitor<'_> for KeyClassifier {
         |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/value/index.rs:146:6
        |
    146 | impl<'a> Display for Type<'a> {
        |      ^^                   ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    146 - impl<'a> Display for Type<'a> {
    146 + impl Display for Type<'_> {
        |

        Checking toml v0.8.19
    warning: the following explicit lifetimes could be elided: 'de
       --> src/number.rs:460:14
        |
    460 |         impl<'de> de::Visitor<'de> for FieldVisitor {
        |              ^^^              ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    460 -         impl<'de> de::Visitor<'de> for FieldVisitor {
    460 +         impl de::Visitor<'_> for FieldVisitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/number.rs:497:14
        |
    497 |         impl<'de> de::Visitor<'de> for Visitor {
        |              ^^^              ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    497 -         impl<'de> de::Visitor<'de> for Visitor {
    497 +         impl de::Visitor<'_> for Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'b, 'c
       --> src/read.rs:132:6
        |
    132 | impl<'b, 'c, T> Deref for Reference<'b, 'c, T>
        |      ^^  ^^                         ^^  ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    132 - impl<'b, 'c, T> Deref for Reference<'b, 'c, T>
    132 + impl<T> Deref for Reference<'_, '_, T>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/read.rs:535:6
        |
    535 | impl<'a> private::Sealed for SliceRead<'a> {}
        |      ^^                                ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    535 - impl<'a> private::Sealed for SliceRead<'a> {}
    535 + impl private::Sealed for SliceRead<'_> {}
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/read.rs:673:6
        |
    673 | impl<'a> private::Sealed for StrRead<'a> {}
        |      ^^                              ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    673 - impl<'a> private::Sealed for StrRead<'a> {}
    673 + impl private::Sealed for StrRead<'_> {}
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/read.rs:827:6
        |
    827 | impl<'a> Fused for SliceRead<'a> {}
        |      ^^                      ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    827 - impl<'a> Fused for SliceRead<'a> {}
    827 + impl Fused for SliceRead<'_> {}
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/read.rs:828:6
        |
    828 | impl<'a> Fused for StrRead<'a> {}
        |      ^^                    ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    828 - impl<'a> Fused for StrRead<'a> {}
    828 + impl Fused for StrRead<'_> {}
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/raw.rs:374:14
        |
    374 |         impl<'de> Visitor<'de> for FieldVisitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    374 -         impl<'de> Visitor<'de> for FieldVisitor {
    374 +         impl Visitor<'_> for FieldVisitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/raw.rs:439:6
        |
    439 | impl<'de> Visitor<'de> for BoxedFromString {
        |      ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    439 - impl<'de> Visitor<'de> for BoxedFromString {
    439 + impl Visitor<'_> for BoxedFromString {
        |

    warning: the following explicit lifetimes could be elided: 'de
      --> tests/regression/issue845.rs:12:6
       |
    12 | impl<'de, T> serde:🇩🇪:Visitor<'de> for NumberVisitor<T>
       |      ^^^                        ^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
       = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]`
    help: elide the lifetimes
       |
    12 - impl<'de, T> serde:🇩🇪:Visitor<'de> for NumberVisitor<T>
    12 + impl<T> serde:🇩🇪:Visitor<'_> for NumberVisitor<T>
       |
2024-10-07 20:45:41 +02:00
David Tolnay
ef9ca27778
Resolve some needless_lifetimes clippy lints
warning: the following explicit lifetimes could be elided: 'a
        --> src/de.rs:1381:11
         |
    1381 | impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer<R> {
         |           ^^                                           ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
         = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all`
         = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]`
    help: elide the lifetimes
         |
    1381 - impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer<R> {
    1381 + impl<'de, R: Read<'de>> de::Deserializer<'de> for &mut Deserializer<R> {
         |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/map.rs:418:6
        |
    418 | impl<'a, Q> ops::Index<&'a Q> for Map<String, Value>
        |      ^^                 ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    418 - impl<'a, Q> ops::Index<&'a Q> for Map<String, Value>
    418 + impl<Q> ops::Index<&Q> for Map<String, Value>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/map.rs:441:6
        |
    441 | impl<'a, Q> ops::IndexMut<&'a Q> for Map<String, Value>
        |      ^^                    ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    441 - impl<'a, Q> ops::IndexMut<&'a Q> for Map<String, Value>
    441 + impl<Q> ops::IndexMut<&Q> for Map<String, Value>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/value/index.rs:140:10
        |
    140 |     impl<'a, T> Sealed for &'a T where T: ?Sized + Sealed {}
        |          ^^                 ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    140 -     impl<'a, T> Sealed for &'a T where T: ?Sized + Sealed {}
    140 +     impl<T> Sealed for &T where T: ?Sized + Sealed {}
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/number.rs:612:11
        |
    612 | impl<'de, 'a> Deserializer<'de> for &'a Number {
        |           ^^                         ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    612 - impl<'de, 'a> Deserializer<'de> for &'a Number {
    612 + impl<'de> Deserializer<'de> for &Number {
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/read.rs:754:6
        |
    754 | impl<'a, 'de, R> private::Sealed for &'a mut R where R: Read<'de> {}
        |      ^^                               ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    754 - impl<'a, 'de, R> private::Sealed for &'a mut R where R: Read<'de> {}
    754 + impl<'de, R> private::Sealed for &mut R where R: Read<'de> {}
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/read.rs:756:6
        |
    756 | impl<'a, 'de, R> Read<'de> for &'a mut R
        |      ^^                         ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    756 - impl<'a, 'de, R> Read<'de> for &'a mut R
    756 + impl<'de, R> Read<'de> for &mut R
        |
2024-10-07 20:43:11 +02:00
David Tolnay
309cfc9f8c
Resolve empty_line_after_doc_comments clippy lint in lexical
warning: empty line after doc comment
       --> tests/../src/lexical/math.rs:277:5
        |
    277 | /     /// ADDITION
    278 | |
        | |_
    ...
    284 |       pub fn iadd_impl(x: &mut Vec<Limb>, y: Limb, xstart: usize) {
        |       ----------------------------------------------------------- the comment documents this function
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
        = note: `-W clippy::empty-line-after-doc-comments` implied by `-W clippy::all`
        = help: to override `-W clippy::all` add `#[allow(clippy::empty_line_after_doc_comments)]`
        = help: if the empty line is unintentional remove it
    help: if the documentation should include the empty line include it in the comment
        |
    278 |     ///
        |
2024-09-27 09:39:37 -07:00
David Tolnay
1faf3a1db6
Replace bool::to_string with if 2024-09-04 15:31:51 -07:00
David Tolnay
d254281184
Replace str::to_string with to_owned 2024-09-04 15:31:51 -07:00
David Tolnay
3f4e30a584
Replace char::to_string with encode_utf8 2024-09-04 15:31:45 -07:00
David Tolnay
4921906b1d
Replace integer to_string with itoa 2024-09-04 15:28:04 -07:00
David Tolnay
59112ae7b1
Replace f64::to_string with ryu 2024-09-04 15:19:23 -07:00
David Tolnay
d96b1d9b64
Release 1.0.128 v1.0.128 2024-09-04 15:06:38 -07:00
David Tolnay
599228d5dc
Merge pull request #1188 from Mrreadiness/feat/add-hashmap-key-128-serializer
Add support for 128 bit HashMap key serialization
2024-09-04 15:06:07 -07:00
Ivan Moiseev
5416cee6c5 feat: add support for 128 bit HashMap key serialization 2024-09-04 20:55:39 +02:00
David Tolnay
27a4ca9d7a
Upload CI Cargo.lock for reproducing failures 2024-08-25 12:12:25 -07:00
David Tolnay
5ebf65cc48
Release 1.0.127 v1.0.127 2024-08-23 13:45:06 -07:00
David Tolnay
f287a3b1a9
Merge pull request 1179 from GREsau/patch-1 2024-08-23 13:44:36 -07:00
David Tolnay
ec980b0277
Release 1.0.126 v1.0.126 2024-08-23 12:50:16 -07:00
David Tolnay
e6282b0c47
Merge pull request #1184 from serde-rs/fastarithmetic
Improve cfg names for fast arithmetic
2024-08-23 12:49:51 -07:00
David Tolnay
ffc4a43453
Improve cfg names for fast arithmetic 2024-08-23 12:43:27 -07:00