Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: serde-rs/serde
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.204
Choose a base ref
...
head repository: serde-rs/serde
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.205
Choose a head ref
  • 9 commits
  • 12 files changed
  • 2 contributors

Commits on Jul 7, 2024

  1. Work around test suite dead code warnings in nightly-2024-07-07

        warning: struct `Cows` is never constructed
           --> test_suite/tests/test_borrow.rs:165:12
            |
        165 |     struct Cows<'a, 'b> {
            |            ^^^^
    
        warning: struct `Wrap` is never constructed
           --> test_suite/tests/test_borrow.rs:181:12
            |
        181 |     struct Wrap<'a, 'b> {
            |            ^^^^
    
        warning: struct `StructSkipDefaultGeneric` is never constructed
          --> test_suite/tests/test_de.rs:96:8
           |
        96 | struct StructSkipDefaultGeneric<T> {
           |        ^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `NonAsciiIdents` is never constructed
           --> test_suite/tests/test_gen.rs:290:12
            |
        290 |     struct NonAsciiIdents {
            |            ^^^^^^^^^^^^^^
            |
        note: the lint level is defined here
           --> test_suite/tests/test_gen.rs:5:9
            |
        5   | #![deny(warnings)]
            |         ^^^^^^^^
            = note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
    
        warning: struct `EmptyBraced` is never constructed
           --> test_suite/tests/test_gen.rs:295:12
            |
        295 |     struct EmptyBraced {}
            |            ^^^^^^^^^^^
    
        warning: struct `EmptyBracedDenyUnknown` is never constructed
           --> test_suite/tests/test_gen.rs:299:12
            |
        299 |     struct EmptyBracedDenyUnknown {}
            |            ^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `BracedSkipAll` is never constructed
           --> test_suite/tests/test_gen.rs:302:12
            |
        302 |     struct BracedSkipAll {
            |            ^^^^^^^^^^^^^
    
        warning: struct `BracedSkipAllDenyUnknown` is never constructed
           --> test_suite/tests/test_gen.rs:309:12
            |
        309 |     struct BracedSkipAllDenyUnknown {
            |            ^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `EmptyTuple` is never constructed
           --> test_suite/tests/test_gen.rs:315:12
            |
        315 |     struct EmptyTuple();
            |            ^^^^^^^^^^
    
        warning: struct `EmptyTupleDenyUnknown` is never constructed
           --> test_suite/tests/test_gen.rs:319:12
            |
        319 |     struct EmptyTupleDenyUnknown();
            |            ^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `TupleSkipAll` is never constructed
           --> test_suite/tests/test_gen.rs:322:12
            |
        322 |     struct TupleSkipAll(#[serde(skip_deserializing)] u8);
            |            ^^^^^^^^^^^^
    
        warning: struct `TupleSkipAllDenyUnknown` is never constructed
           --> test_suite/tests/test_gen.rs:326:12
            |
        326 |     struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
            |            ^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: enum `EmptyEnum` is never used
           --> test_suite/tests/test_gen.rs:329:10
            |
        329 |     enum EmptyEnum {}
            |          ^^^^^^^^^
    
        warning: enum `EmptyEnumDenyUnknown` is never used
           --> test_suite/tests/test_gen.rs:333:10
            |
        333 |     enum EmptyEnumDenyUnknown {}
            |          ^^^^^^^^^^^^^^^^^^^^
    
        warning: enum `EnumSkipAll` is never used
           --> test_suite/tests/test_gen.rs:336:10
            |
        336 |     enum EnumSkipAll {
            |          ^^^^^^^^^^^
    
        warning: enum `EmptyVariants` is never used
           --> test_suite/tests/test_gen.rs:343:10
            |
        343 |     enum EmptyVariants {
            |          ^^^^^^^^^^^^^
    
        warning: enum `EmptyVariantsDenyUnknown` is never used
           --> test_suite/tests/test_gen.rs:355:10
            |
        355 |     enum EmptyVariantsDenyUnknown {
            |          ^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `UnitDenyUnknown` is never constructed
           --> test_suite/tests/test_gen.rs:367:12
            |
        367 |     struct UnitDenyUnknown;
            |            ^^^^^^^^^^^^^^^
    
        warning: struct `EmptyArray` is never constructed
           --> test_suite/tests/test_gen.rs:370:12
            |
        370 |     struct EmptyArray {
            |            ^^^^^^^^^^
    
        warning: enum `Or` is never used
           --> test_suite/tests/test_gen.rs:374:10
            |
        374 |     enum Or<A, B> {
            |          ^^
    
        warning: enum `OrDef` is never used
           --> test_suite/tests/test_gen.rs:381:10
            |
        381 |     enum OrDef<A, B> {
            |          ^^^^^
    
        warning: struct `Str` is never constructed
           --> test_suite/tests/test_gen.rs:386:12
            |
        386 |     struct Str<'a>(&'a str);
            |            ^^^
    
        warning: struct `StrDef` is never constructed
           --> test_suite/tests/test_gen.rs:390:12
            |
        390 |     struct StrDef<'a>(&'a str);
            |            ^^^^^^
    
        warning: struct `Remote` is never constructed
           --> test_suite/tests/test_gen.rs:393:12
            |
        393 |     struct Remote<'a> {
            |            ^^^^^^
    
        warning: enum `BorrowVariant` is never used
           --> test_suite/tests/test_gen.rs:401:10
            |
        401 |     enum BorrowVariant<'a> {
            |          ^^^^^^^^^^^^^
    
        warning: struct `RemoteVisibility` is never constructed
           --> test_suite/tests/test_gen.rs:418:12
            |
        418 |     struct RemoteVisibility {
            |            ^^^^^^^^^^^^^^^^
    
        warning: struct `FlattenDenyUnknown` is never constructed
           --> test_suite/tests/test_gen.rs:551:12
            |
        551 |     struct FlattenDenyUnknown<T> {
            |            ^^^^^^^^^^^^^^^^^^
    
        warning: struct `StaticStrStruct` is never constructed
           --> test_suite/tests/test_gen.rs:557:12
            |
        557 |     struct StaticStrStruct<'a> {
            |            ^^^^^^^^^^^^^^^
    
        warning: struct `StaticStrTupleStruct` is never constructed
           --> test_suite/tests/test_gen.rs:563:12
            |
        563 |     struct StaticStrTupleStruct<'a>(&'a str, &'static str);
            |            ^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `StaticStrNewtypeStruct` is never constructed
           --> test_suite/tests/test_gen.rs:566:12
            |
        566 |     struct StaticStrNewtypeStruct(&'static str);
            |            ^^^^^^^^^^^^^^^^^^^^^^
    
        warning: enum `StaticStrEnum` is never used
           --> test_suite/tests/test_gen.rs:569:10
            |
        569 |     enum StaticStrEnum<'a> {
            |          ^^^^^^^^^^^^^
    
        warning: enum `AdjacentlyTaggedVoid` is never used
           --> test_suite/tests/test_gen.rs:652:10
            |
        652 |     enum AdjacentlyTaggedVoid {}
            |          ^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `ImplicitlyBorrowedOption` is never constructed
           --> test_suite/tests/test_gen.rs:665:12
            |
        665 |     struct ImplicitlyBorrowedOption<'a> {
            |            ^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: enum `UntaggedNewtypeVariantWith` is never used
           --> test_suite/tests/test_gen.rs:672:10
            |
        672 |     enum UntaggedNewtypeVariantWith {
            |          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `TransparentWith` is never constructed
           --> test_suite/tests/test_gen.rs:682:12
            |
        682 |     struct TransparentWith {
            |            ^^^^^^^^^^^^^^^
    
        warning: struct `FlattenSkipSerializing` is never constructed
           --> test_suite/tests/test_gen.rs:712:12
            |
        712 |     struct FlattenSkipSerializing<T> {
            |            ^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `FlattenSkipSerializingIf` is never constructed
           --> test_suite/tests/test_gen.rs:719:12
            |
        719 |     struct FlattenSkipSerializingIf<T> {
            |            ^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `FlattenSkipDeserializing` is never constructed
           --> test_suite/tests/test_gen.rs:725:12
            |
        725 |     struct FlattenSkipDeserializing<T> {
            |            ^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: enum `Message` is never used
           --> test_suite/tests/test_gen.rs:732:10
            |
        732 |     enum Message {
            |          ^^^^^^^
    
        warning: struct `MacroRules` is never constructed
           --> test_suite/tests/test_gen.rs:751:20
            |
        751 |             struct MacroRules<'a> {
            |                    ^^^^^^^^^^
        ...
        758 |     deriving!(&'a str);
            |     ------------------ in this macro invocation
            |
            = note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
    
        warning: struct `BorrowLifetimeInsideMacro` is never constructed
           --> test_suite/tests/test_gen.rs:767:12
            |
        767 |     struct BorrowLifetimeInsideMacro<'a> {
            |            ^^^^^^^^^^^^^^^^^^^^^^^^^
    
        warning: struct `GenericUnitStruct` is never constructed
           --> test_suite/tests/test_gen.rs:782:12
            |
        782 |     struct GenericUnitStruct<const N: usize>;
            |            ^^^^^^^^^^^^^^^^^
    
        warning: enum `InternallyTagged` is never used
           --> test_suite/tests/test_gen.rs:869:6
            |
        869 | enum InternallyTagged {
            |      ^^^^^^^^^^^^^^^^
    
        warning: function `deserialize_generic` is never used
           --> test_suite/tests/test_gen.rs:880:4
            |
        880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
            |    ^^^^^^^^^^^^^^^^^^^
    
        warning: struct `Restricted` is never constructed
           --> test_suite/tests/test_gen.rs:643:20
            |
        643 |             struct Restricted {
            |                    ^^^^^^^^^^
    
        warning: struct `Test` is never constructed
          --> test_suite/tests/test_remote.rs:95:8
           |
        95 | struct Test {
           |        ^^^^
    
        warning: struct `UnitDef` is never constructed
           --> test_suite/tests/test_remote.rs:135:8
            |
        135 | struct UnitDef;
            |        ^^^^^^^
    
        warning: struct `PrimitivePubDef` is never constructed
           --> test_suite/tests/test_remote.rs:143:8
            |
        143 | struct PrimitivePubDef(u8);
            |        ^^^^^^^^^^^^^^^
    
        warning: struct `NewtypePubDef` is never constructed
           --> test_suite/tests/test_remote.rs:151:8
            |
        151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
            |        ^^^^^^^^^^^^^
    
        warning: struct `TuplePubDef` is never constructed
           --> test_suite/tests/test_remote.rs:162:8
            |
        162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
            |        ^^^^^^^^^^^
    
        warning: struct `StructPubDef` is never constructed
           --> test_suite/tests/test_remote.rs:177:8
            |
        177 | struct StructPubDef {
            |        ^^^^^^^^^^^^
    
        warning: struct `StructConcrete` is never constructed
           --> test_suite/tests/test_remote.rs:193:8
            |
        193 | struct StructConcrete {
            |        ^^^^^^^^^^^^^^
    
        warning: enum `EnumConcrete` is never used
           --> test_suite/tests/test_remote.rs:199:6
            |
        199 | enum EnumConcrete {
            |      ^^^^^^^^^^^^
    
        warning: enum `ErrorKind` is never used
           --> test_suite/tests/test_remote.rs:204:6
            |
        204 | enum ErrorKind {
            |      ^^^^^^^^^
    
        warning: enum `ErrorKindDef` is never used
           --> test_suite/tests/test_remote.rs:214:6
            |
        214 | enum ErrorKindDef {
            |      ^^^^^^^^^^^^
    
        warning: struct `PrimitivePub` is never constructed
          --> test_suite/tests/test_remote.rs:10:16
           |
        10 |     pub struct PrimitivePub(pub u8);
           |                ^^^^^^^^^^^^
    
        warning: struct `NewtypePub` is never constructed
          --> test_suite/tests/test_remote.rs:14:16
           |
        14 |     pub struct NewtypePub(pub Unit);
           |                ^^^^^^^^^^
    
        warning: struct `TuplePub` is never constructed
          --> test_suite/tests/test_remote.rs:18:16
           |
        18 |     pub struct TuplePub(pub u8, pub Unit);
           |                ^^^^^^^^
    
        warning: struct `StructPub` is never constructed
          --> test_suite/tests/test_remote.rs:25:16
           |
        25 |     pub struct StructPub {
           |                ^^^^^^^^^
    
        warning: enum `EnumGeneric` is never used
          --> test_suite/tests/test_remote.rs:89:14
           |
        89 |     pub enum EnumGeneric<T> {
           |              ^^^^^^^^^^^
    
        warning: struct `Tuple` is never constructed
          --> test_suite/tests/test_self.rs:44:12
           |
        44 |     struct Tuple(
           |            ^^^^^
    
        warning: associated items `ASSOC` and `assoc` are never used
          --> test_suite/tests/test_self.rs:52:15
           |
        51 |     impl Tuple {
           |     ---------- associated items in this implementation
        52 |         const ASSOC: usize = 1;
           |               ^^^^^
        53 |         const fn assoc() -> usize {
           |                  ^^^^^
    
        warning: enum `Enum` is never used
          --> test_suite/tests/test_self.rs:63:10
           |
        63 |     enum Enum {
           |          ^^^^
    
        warning: associated items `ASSOC` and `assoc` are never used
          --> test_suite/tests/test_self.rs:79:15
           |
        78 |     impl Enum {
           |     --------- associated items in this implementation
        79 |         const ASSOC: usize = 1;
           |               ^^^^^
        80 |         const fn assoc() -> usize {
           |                  ^^^^^
    
        warning: struct `Unit` is never constructed
          --> test_suite/no_std/src/main.rs:26:8
           |
        26 | struct Unit;
           |        ^^^^
    
        warning: struct `Newtype` is never constructed
          --> test_suite/no_std/src/main.rs:29:8
           |
        29 | struct Newtype(u8);
           |        ^^^^^^^
    
        warning: struct `Tuple` is never constructed
          --> test_suite/no_std/src/main.rs:32:8
           |
        32 | struct Tuple(u8, u8);
           |        ^^^^^
    
        warning: struct `Struct` is never constructed
          --> test_suite/no_std/src/main.rs:35:8
           |
        35 | struct Struct {
           |        ^^^^^^
    
        warning: enum `Enum` is never used
          --> test_suite/no_std/src/main.rs:40:6
           |
        40 | enum Enum {
           |      ^^^^
    dtolnay committed Jul 7, 2024
    Copy the full SHA
    28a0922 View commit details

Commits on Aug 3, 2024

  1. Use serialize_entry instead of serialize_key + serialize_value when s…

    …erialize flatten newtype enum variant
    
    Serializers that reimplements serialize_entry will get benefits from that
    Mingun committed Aug 3, 2024
    Copy the full SHA
    bc5af50 View commit details

Commits on Aug 5, 2024

  1. Merge pull request #2785 from Mingun/serialize_entry-in-flatten-newty…

    …pe-variant
    
    Use serialize_entry instead of serialize_key + serialize_value when serialize flatten newtype enum variant
    dtolnay authored Aug 5, 2024
    Copy the full SHA
    e08c5de View commit details

Commits on Aug 8, 2024

  1. Enable collection_is_never_read nursury lint in test

        error: collection is never read
           --> test_suite/tests/test_gen.rs:722:25
            |
        722 |     #[derive(Serialize, Deserialize)]
            |                         ^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collection_is_never_read
        note: the lint level is defined here
           --> test_suite/tests/test_gen.rs:22:9
            |
        22  | #![deny(clippy::collection_is_never_read)]
            |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
    dtolnay committed Aug 8, 2024
    Copy the full SHA
    8764353 View commit details
  2. Add test of flatten in enum

        error: collection is never read
           --> test_suite/tests/test_gen.rs:728:25
            |
        728 |     #[derive(Serialize, Deserialize)]
            |                         ^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collection_is_never_read
            = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
    dtolnay committed Aug 8, 2024
    Copy the full SHA
    c3df337 View commit details
  3. Ignore confusable_idents warning in test

        error: found both `σ` and `o` as identifiers, which look alike
           --> test_suite/tests/test_gen.rs:734:13
            |
        292 |         σ: f64,
            |         - other identifier used here
        ...
        734 |             o: T,
            |             ^ this identifier can be confused with `σ`
            |
        note: the lint level is defined here
           --> test_suite/tests/test_gen.rs:5:9
            |
        5   | #![deny(warnings)]
            |         ^^^^^^^^
            = note: `#[deny(confusable_idents)]` implied by `#[deny(warnings)]`
    dtolnay committed Aug 8, 2024
    Copy the full SHA
    d64a97b View commit details
  4. Copy the full SHA
    32958de View commit details
  5. Merge pull request #2791 from dtolnay/flatten

    Skip collecting unmatched fields in variants that do not use flatten
    dtolnay authored Aug 8, 2024
    Copy the full SHA
    c3eaf76 View commit details
  6. Release 1.0.205

    dtolnay committed Aug 8, 2024
    Copy the full SHA
    9b868ef View commit details
4 changes: 2 additions & 2 deletions serde/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde"
version = "1.0.204"
version = "1.0.205"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"]
build = "build.rs"
categories = ["encoding", "no-std", "no-std::no-alloc"]
@@ -37,7 +37,7 @@ rustdoc-args = ["--generate-link-to-definition"]
# is compatible with exactly one serde release because the generated code
# involves nonpublic APIs which are not bound by semver.
[target.'cfg(any())'.dependencies]
serde_derive = { version = "=1.0.204", path = "../serde_derive" }
serde_derive = { version = "=1.0.205", path = "../serde_derive" }


### FEATURES #################################################################
2 changes: 1 addition & 1 deletion serde/src/lib.rs
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@
////////////////////////////////////////////////////////////////////////////////

// Serde types in rustdoc of other crates get linked to here.
#![doc(html_root_url = "https://docs.rs/serde/1.0.204")]
#![doc(html_root_url = "https://docs.rs/serde/1.0.205")]
// Support using Serde without the standard library!
#![cfg_attr(not(feature = "std"), no_std)]
// Show which crate feature enables conditionally compiled APIs in documentation.
3 changes: 1 addition & 2 deletions serde/src/private/ser.rs
Original file line number Diff line number Diff line change
@@ -1125,8 +1125,7 @@ where
where
T: ?Sized + Serialize,
{
tri!(self.0.serialize_key(variant));
self.0.serialize_value(value)
self.0.serialize_entry(variant, value)
}

fn serialize_seq(self, _: Option<usize>) -> Result<Self::SerializeSeq, Self::Error> {
2 changes: 1 addition & 1 deletion serde_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde_derive"
version = "1.0.204"
version = "1.0.205"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"]
categories = ["no-std", "no-std::no-alloc"]
description = "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]"
9 changes: 6 additions & 3 deletions serde_derive/src/de.rs
Original file line number Diff line number Diff line change
@@ -2480,7 +2480,10 @@ fn deserialize_map(
});

// Collect contents for flatten fields into a buffer
let let_collect = if cattrs.has_flatten() {
let has_flatten = fields
.iter()
.any(|field| field.attrs.flatten() && !field.attrs.skip_deserializing());
let let_collect = if has_flatten {
Some(quote! {
let mut __collect = _serde::__private::Vec::<_serde::__private::Option<(
_serde::__private::de::Content,
@@ -2532,7 +2535,7 @@ fn deserialize_map(
});

// Visit ignored values to consume them
let ignored_arm = if cattrs.has_flatten() {
let ignored_arm = if has_flatten {
Some(quote! {
__Field::__other(__name) => {
__collect.push(_serde::__private::Some((
@@ -2602,7 +2605,7 @@ fn deserialize_map(
}
});

let collected_deny_unknown_fields = if cattrs.has_flatten() && cattrs.deny_unknown_fields() {
let collected_deny_unknown_fields = if has_flatten && cattrs.deny_unknown_fields() {
Some(quote! {
if let _serde::__private::Some(_serde::__private::Some((__key, _))) =
__collect.into_iter().filter(_serde::__private::Option::is_some).next()
2 changes: 1 addition & 1 deletion serde_derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//!
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.204")]
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.205")]
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
// Ignored clippy lints
#![allow(
10 changes: 5 additions & 5 deletions test_suite/no_std/src/main.rs
Original file line number Diff line number Diff line change
@@ -23,21 +23,21 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
use serde_derive::{Deserialize, Serialize};

#[derive(Serialize, Deserialize)]
struct Unit;
pub struct Unit;

#[derive(Serialize, Deserialize)]
struct Newtype(u8);
pub struct Newtype(u8);

#[derive(Serialize, Deserialize)]
struct Tuple(u8, u8);
pub struct Tuple(u8, u8);

#[derive(Serialize, Deserialize)]
struct Struct {
pub struct Struct {
f: u8,
}

#[derive(Serialize, Deserialize)]
enum Enum {
pub enum Enum {
Unit,
Newtype(u8),
Tuple(u8, u8),
4 changes: 2 additions & 2 deletions test_suite/tests/test_borrow.rs
Original file line number Diff line number Diff line change
@@ -162,7 +162,7 @@ fn test_cow() {
#[test]
fn test_lifetimes() {
#[derive(Deserialize)]
struct Cows<'a, 'b> {
pub struct Cows<'a, 'b> {
_copied: Cow<'a, str>,

#[serde(borrow)]
@@ -178,7 +178,7 @@ fn test_lifetimes() {
}

#[derive(Deserialize)]
struct Wrap<'a, 'b> {
pub struct Wrap<'a, 'b> {
#[serde(borrow = "'b")]
_cows: Cows<'a, 'b>,
}
2 changes: 1 addition & 1 deletion test_suite/tests/test_de.rs
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ struct StructSkipDefault {

#[derive(PartialEq, Debug, Deserialize)]
#[serde(default)]
struct StructSkipDefaultGeneric<T> {
pub struct StructSkipDefaultGeneric<T> {
#[serde(skip_deserializing)]
t: T,
}
Loading