Rename Annotation trait to Annotate
This commit is contained in:
@@ -70,7 +70,7 @@ fn generate_type(ty: &Ident) -> Result<TokenStream> {
|
||||
}
|
||||
}
|
||||
|
||||
impl #ffi::Annotation for #ty {
|
||||
impl #ffi::Annotate for #ty {
|
||||
fn annotation() -> impl ::std::fmt::Display { #name }
|
||||
}
|
||||
|
||||
|
||||
@@ -682,7 +682,7 @@ fn stub_lua_function(func: &mut ImplItemFn) -> Result<()> {
|
||||
func.attrs.push(parse_quote!(#[allow(unused)]));
|
||||
func.block.stmts.clear();
|
||||
func.block.stmts.push(parse_quote!(
|
||||
const fn has_annotation<T: #ffi::Annotation>() {}
|
||||
const fn has_annotation<T: #ffi::Annotate>() {}
|
||||
));
|
||||
|
||||
// convert `...` variadic to a `rest: luaffi::marker::Many` parameter
|
||||
|
||||
Reference in New Issue
Block a user