Move RenameRule parse from trait fn to associated

This will allow updating it to return an Err that borrows the input
string, which is not possible with FromStr.
This commit is contained in:
David Tolnay
2021-01-23 14:07:49 -08:00
parent 88ee470a1c
commit ed04824f10
2 changed files with 14 additions and 21 deletions
-1
View File
@@ -4,7 +4,6 @@ use proc_macro2::{Group, Span, TokenStream, TokenTree};
use quote::ToTokens;
use std::borrow::Cow;
use std::collections::BTreeSet;
use std::str::FromStr;
use syn;
use syn::parse::{self, Parse, ParseStream};
use syn::punctuated::Punctuated;