diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-25 08:33:06 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-25 08:40:30 +0100 |
commit | 21583e526c8045c60026b1fe8ec9510734d1764d (patch) | |
tree | 53763ef8ff9bbc6f1288efb9c7a3ecb58afd15cc /src/lib.rs | |
parent | 73b1ca899858b7079bec54a6e4f29941cbb8d0bd (diff) |
rename parse_trait_sig module to trait_sig
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -44,18 +44,18 @@ use syn_utils::TypeOrPath; use crate::parse_assoc_type::parse_assoc_type; use crate::parse_assoc_type::AssocTypeError; -use crate::parse_trait_sig::parse_trait_signature; -use crate::parse_trait_sig::MethodError; -use crate::parse_trait_sig::SignatureChanges; -use crate::parse_trait_sig::TypeTransform; use crate::syn_utils::iter_path; use crate::syn_utils::trait_bounds; +use crate::trait_sig::convert_trait_signature; +use crate::trait_sig::MethodError; +use crate::trait_sig::SignatureChanges; +use crate::trait_sig::TypeTransform; use crate::transform::TransformError; use crate::transform::TypeConverter; mod parse_assoc_type; -mod parse_trait_sig; mod syn_utils; +mod trait_sig; mod transform; macro_rules! abort { @@ -189,7 +189,7 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream { for item in &original_trait.items { if let TraitItem::Method(method) = item { let mut signature = method.sig.clone(); - match parse_trait_signature(&mut signature, &type_converter) { + match convert_trait_signature(&mut signature, &type_converter) { Ok(parsed_method) => objectifiable_methods.push((signature, parsed_method)), Err((span, err)) => match err { MethodError::NonDispatchableMethod => continue, |