api-macro: fix Updatable path in generated derive attribute

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-04-14 11:58:32 +02:00
parent 6fc95b8628
commit cde2863a68
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ fn derive_updater(
original_struct.attrs.push(util::make_derive_attribute( original_struct.attrs.push(util::make_derive_attribute(
Span::call_site(), Span::call_site(),
quote::quote! { Updatable }, quote::quote! { ::proxmox::api::schema::Updatable },
)); ));
let updater_name = &stru.ident; let updater_name = &stru.ident;

View File

@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
use serde_json::Value; use serde_json::Value;
use proxmox::api::api; use proxmox::api::api;
use proxmox::api::schema::{Updatable, Updater}; use proxmox::api::schema::Updater;
#[api] #[api]
/// An example of a simple struct type. /// An example of a simple struct type.