Update interface.rs

This commit is contained in:
Sunli 2020-09-17 13:43:08 +08:00
parent 5a340dc120
commit a0515ed20e

View File

@ -77,7 +77,7 @@ pub fn generate(interface_args: &args::Interface, input: &DeriveInput) -> Result
type_into_impls.push(quote! {
#[allow(clippy::all, clippy::pedantic)]
impl #generics std::convert::From<#p> for #ident #generics {
impl #generics ::std::convert::From<#p> for #ident #generics {
fn from(obj: #p) -> Self {
#ident::#enum_name(obj)
}