Skip to content

Commit

Permalink
Delete inline attributes throughout test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 17, 2023
1 parent 54bcb4d commit 8f90eac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test.rs
Expand Up @@ -1452,7 +1452,6 @@ fn test_serialize_seq_with_no_len() {
where
T: ser::Serialize,
{
#[inline]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: ser::Serializer,
Expand All @@ -1479,15 +1478,13 @@ fn test_serialize_seq_with_no_len() {
formatter.write_str("array")
}

#[inline]
fn visit_unit<E>(self) -> Result<MyVec<T>, E>
where
E: de::Error,
{
Ok(MyVec(Vec::new()))
}

#[inline]
fn visit_seq<V>(self, mut visitor: V) -> Result<MyVec<T>, V::Error>
where
V: de::SeqAccess<'de>,
Expand Down Expand Up @@ -1538,7 +1535,6 @@ fn test_serialize_map_with_no_len() {
K: ser::Serialize + Ord,
V: ser::Serialize,
{
#[inline]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: ser::Serializer,
Expand Down Expand Up @@ -1566,15 +1562,13 @@ fn test_serialize_map_with_no_len() {
formatter.write_str("map")
}

#[inline]
fn visit_unit<E>(self) -> Result<MyMap<K, V>, E>
where
E: de::Error,
{
Ok(MyMap(BTreeMap::new()))
}

#[inline]
fn visit_map<Visitor>(self, mut visitor: Visitor) -> Result<MyMap<K, V>, Visitor::Error>
where
Visitor: de::MapAccess<'de>,
Expand Down

0 comments on commit 8f90eac

Please sign in to comment.