Skip to content

Commit

Permalink
clean up extra lints
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Dec 27, 2021
1 parent 84a4dc0 commit a639fc2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion recap-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
3 changes: 1 addition & 2 deletions recap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(),
)
}

Expand Down

0 comments on commit a639fc2

Please sign in to comment.