From 559dc16870a6622cda3e773706943f72e966cd23 Mon Sep 17 00:00:00 2001 From: Caleb Zulawski Date: Thu, 14 Mar 2024 23:45:57 -0400 Subject: [PATCH] Fix lints --- multiversion-macros/src/multiversion.rs | 2 +- multiversion-macros/src/target.rs | 1 - multiversion-macros/src/util.rs | 16 ++-------------- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/multiversion-macros/src/multiversion.rs b/multiversion-macros/src/multiversion.rs index ef049b2..24654c3 100644 --- a/multiversion-macros/src/multiversion.rs +++ b/multiversion-macros/src/multiversion.rs @@ -2,7 +2,7 @@ use crate::dispatcher::{DispatchMethod, Dispatcher}; use crate::target::Target; use proc_macro2::{Span, TokenStream}; use quote::ToTokens; -use std::{collections::HashMap, convert::TryFrom}; +use std::collections::HashMap; use syn::{ parse::Parser, parse_quote, punctuated::Punctuated, spanned::Spanned, token::Comma, Error, ItemFn, Lit, LitStr, Meta, NestedMeta, ReturnType, Type, diff --git a/multiversion-macros/src/target.rs b/multiversion-macros/src/target.rs index 8d3eaf0..2d75026 100644 --- a/multiversion-macros/src/target.rs +++ b/multiversion-macros/src/target.rs @@ -177,7 +177,6 @@ pub(crate) fn make_target_fn(target: LitStr, func: ItemFn) -> Result Vec { sig.inputs .iter()