From 820214615547101f8f2b5de209b5189968bddfee Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 5 Apr 2020 17:37:15 +0100 Subject: Fix clippy warnings --- serde_dhall/src/static_type.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'serde_dhall/src/static_type.rs') diff --git a/serde_dhall/src/static_type.rs b/serde_dhall/src/static_type.rs index f7b72b5..26c70cd 100644 --- a/serde_dhall/src/static_type.rs +++ b/serde_dhall/src/static_type.rs @@ -117,7 +117,6 @@ where .into_iter() .collect(), ) - .into() } } @@ -135,7 +134,6 @@ where .into_iter() .collect(), ) - .into() } } @@ -144,7 +142,7 @@ where T: StaticType, { fn static_type() -> SimpleType { - SimpleType::Optional(Box::new(T::static_type())).into() + SimpleType::Optional(Box::new(T::static_type())) } } @@ -153,7 +151,7 @@ where T: StaticType, { fn static_type() -> SimpleType { - SimpleType::List(Box::new(T::static_type())).into() + SimpleType::List(Box::new(T::static_type())) } } -- cgit v1.2.3