From a639fc21a03fd6d579fd40e873aec8fc4fda7a9e Mon Sep 17 00:00:00 2001 From: softprops Date: Mon, 27 Dec 2021 13:49:47 -0500 Subject: [PATCH] clean up extra lints --- recap-derive/src/lib.rs | 1 - recap/src/lib.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/recap-derive/src/lib.rs b/recap-derive/src/lib.rs index c3ddc1b..8af6a27 100644 --- a/recap-derive/src/lib.rs +++ b/recap-derive/src/lib.rs @@ -4,7 +4,6 @@ use proc_macro::TokenStream; use proc_macro2::Span; use quote::quote; use regex::Regex; -use std::convert::identity; use syn::{ parse_macro_input, Data::Struct, DataStruct, DeriveInput, Fields, Ident, Lit, Meta, NestedMeta, }; diff --git a/recap/src/lib.rs b/recap/src/lib.rs index 63f6f5a..4e5cf76 100644 --- a/recap/src/lib.rs +++ b/recap/src/lib.rs @@ -112,7 +112,6 @@ use serde::de::{ value::{BorrowedStrDeserializer, MapDeserializer, SeqDeserializer}, Deserialize, IntoDeserializer, }; -use std::convert::identity; // used in derive crate output // to derive a static for compiled @@ -365,7 +364,7 @@ where .map(|maybe_name| { maybe_name.and_then(|name| caps.name(name).map(|val| (name, val.as_str()))) }) - .filter_map(identity), + .flatten(), ) }