summaryrefslogtreecommitdiff
path: root/serde_dhall
diff options
context:
space:
mode:
authorNadrieril2020-10-28 23:31:57 +0000
committerNadrieril2020-10-28 23:31:57 +0000
commitaf16e9699799f8cfbd228e2832e1d5df3653116b (patch)
tree1440cfb514fa856718074f2b1ebce801459b5c0c /serde_dhall
parent1a53f10c6ed1ef65621b39c40e05da79161047cc (diff)
Fix clippy and formatting
Diffstat (limited to 'serde_dhall')
-rw-r--r--serde_dhall/src/options/ser.rs2
-rw-r--r--serde_dhall/tests/serde.rs4
2 files changed, 4 insertions, 2 deletions
diff --git a/serde_dhall/src/options/ser.rs b/serde_dhall/src/options/ser.rs
index 3332735..d74beb0 100644
--- a/serde_dhall/src/options/ser.rs
+++ b/serde_dhall/src/options/ser.rs
@@ -223,7 +223,7 @@ where
/// [`type_annotation`]: struct.Serializer.html#method.type_annotation
/// [`static_type_annotation`]: struct.Serializer.html#method.static_type_annotation
/// [`to_string`]: struct.Serializer.html#method.to_string
-pub fn serialize<'a, T>(data: &'a T) -> Serializer<'a, T, NoAnnot>
+pub fn serialize<T>(data: &T) -> Serializer<'_, T, NoAnnot>
where
T: ToDhall,
{
diff --git a/serde_dhall/tests/serde.rs b/serde_dhall/tests/serde.rs
index 03bcc58..4c184e7 100644
--- a/serde_dhall/tests/serde.rs
+++ b/serde_dhall/tests/serde.rs
@@ -179,7 +179,9 @@ mod serde {
expected_map.insert("FOO_BAR".to_string(), 2);
expected_map.insert("baz-kux".to_string(), 3);
assert_eq!(
- parse::<HashMap<String, u64>>("{ `if` = 1, FOO_BAR = 2, baz-kux = 3 }"),
+ parse::<HashMap<String, u64>>(
+ "{ `if` = 1, FOO_BAR = 2, baz-kux = 3 }"
+ ),
expected_map
);