Revert "Add FIXME to fix dead_code warning when using serde(remote)"

This commit is contained in:
David Tolnay 2024-01-05 18:19:12 -08:00
parent 6502b31316
commit 38d9e0b209
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 0 additions and 4 deletions

View File

@ -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)]

View File

@ -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)]
@ -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)]
@ -198,7 +196,6 @@ struct StructConcrete {
#[derive(Serialize, Deserialize)]
#[serde(remote = "remote::EnumGeneric<u8>")]
#[allow(dead_code)] // FIXME
enum EnumConcrete {
Variant(u8),
}