Open
Description
Copied from discord:
Found outdated links in the error message. Perhaps the version string could be extracted from Cargo.toml at compile time to make it more consistent?
fn generate_error_with_docs(span: proc_macro2::Span, message: &str) -> syn::Error {
syn::Error::new(
span,
format!(
"{message}\n\texpecting #[variant(...)]. See documentation:\n\thttps://docs.rs/gdnative/0.9.0/gdnative/core_types/trait.ToVariant.html#field-attributes"
),
)
}
gdnative/gdnative-derive/src/variant/attr.rs
Lines 72 to 79 in 6dc9721
another one with similar signature:
gdnative/gdnative-derive/src/variant/attr/field.rs
Lines 36 to 43 in 6dc9721