Skip to content

Commit

Permalink
Revert "Add FIXME to fix dead_code warning when using serde(remote)"
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 6, 2024
1 parent 6502b31 commit 38d9e0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion test_suite/tests/test_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ fn test_gen() {

#[derive(Serialize, Deserialize)]
#[serde(remote = "Str")]
#[allow(dead_code)] // FIXME
struct StrDef<'a>(&'a str);

#[derive(Serialize, Deserialize)]
Expand Down
3 changes: 0 additions & 3 deletions test_suite/tests/test_remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ struct PrimitivePrivDef(#[serde(getter = "remote::PrimitivePriv::get")] u8);

#[derive(Serialize, Deserialize)]
#[serde(remote = "remote::PrimitivePub")]
#[allow(dead_code)] // FIXME
struct PrimitivePubDef(u8);

#[derive(Serialize, Deserialize)]
Expand All @@ -160,7 +159,6 @@ struct TuplePrivDef(

#[derive(Serialize, Deserialize)]
#[serde(remote = "remote::TuplePub")]
#[allow(dead_code)] // FIXME
struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);

#[derive(Serialize, Deserialize)]
Expand Down Expand Up @@ -198,7 +196,6 @@ struct StructConcrete {

#[derive(Serialize, Deserialize)]
#[serde(remote = "remote::EnumGeneric<u8>")]
#[allow(dead_code)] // FIXME
enum EnumConcrete {
Variant(u8),
}
Expand Down

0 comments on commit 38d9e0b

Please sign in to comment.