Remove unused functions in with-variant tests
Macro expansion fails before it would generate code to call any of these.
This commit is contained in:
parent
0963121beb
commit
2e597ed3f0
@ -16,10 +16,4 @@ enum Enum {
|
||||
Newtype(#[serde(skip_deserializing)] String),
|
||||
}
|
||||
|
||||
fn deserialize_some_newtype_variant<'de, D>(_: D) -> StdResult<String, D::Error>
|
||||
where D: Deserializer<'de>,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -20,10 +20,4 @@ enum Enum {
|
||||
},
|
||||
}
|
||||
|
||||
fn deserialize_some_other_variant<'de, D>(_: D) -> StdResult<(String, u8), D::Error>
|
||||
where D: Deserializer<'de>,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -16,10 +16,4 @@ enum Enum {
|
||||
Tuple(#[serde(skip_deserializing)] String, u8),
|
||||
}
|
||||
|
||||
fn deserialize_some_other_variant<'de, D>(_: D) -> StdResult<(String, u8), D::Error>
|
||||
where D: Deserializer<'de>,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -17,10 +17,4 @@ enum Enum {
|
||||
Unit,
|
||||
}
|
||||
|
||||
fn deserialize_some_unit_variant<'de, D>(_: D) -> StdResult<(), D::Error>
|
||||
where D: Deserializer<'de>,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -16,10 +16,4 @@ enum Enum {
|
||||
Newtype(#[serde(skip_serializing)] String),
|
||||
}
|
||||
|
||||
fn serialize_some_newtype_variant<S>(_: &String) -> StdResult<S::Ok, S::Error>
|
||||
where S: Serializer,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -16,12 +16,4 @@ enum Enum {
|
||||
Newtype(#[serde(skip_serializing_if = "always")] String),
|
||||
}
|
||||
|
||||
fn serialize_some_newtype_variant<S>(_: &String) -> StdResult<S::Ok, S::Error>
|
||||
where S: Serializer,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn always<T>(_: &T) -> bool { true }
|
||||
|
||||
fn main() { }
|
||||
|
@ -20,10 +20,4 @@ enum Enum {
|
||||
},
|
||||
}
|
||||
|
||||
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
|
||||
where S: Serializer,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -20,12 +20,4 @@ enum Enum {
|
||||
},
|
||||
}
|
||||
|
||||
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
|
||||
where S: Serializer,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn always<T>(_: &T) -> bool { true }
|
||||
|
||||
fn main() { }
|
||||
|
@ -16,10 +16,4 @@ enum Enum {
|
||||
Tuple(#[serde(skip_serializing)] String, u8),
|
||||
}
|
||||
|
||||
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
|
||||
where S: Serializer,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -16,12 +16,4 @@ enum Enum {
|
||||
Tuple(#[serde(skip_serializing_if = "always")] String, u8),
|
||||
}
|
||||
|
||||
fn serialize_some_other_variant<S>(_: &String, _: Option<&u8>, _: S) -> StdResult<S::Ok, S::Error>
|
||||
where S: Serializer,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn always<T>(_: &T) -> bool { true }
|
||||
|
||||
fn main() { }
|
||||
|
@ -17,10 +17,4 @@ enum Enum {
|
||||
Unit,
|
||||
}
|
||||
|
||||
fn serialize_some_unit_variant<S>(_: S) -> StdResult<S::Ok, S::Error>
|
||||
where S: Serializer,
|
||||
{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
Loading…
Reference in New Issue
Block a user