]> git.proxmox.com Git - proxmox.git/commitdiff
router: add remaining missing ::proxmox::api:: prefixes
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Sat, 8 Jun 2019 08:57:50 +0000 (10:57 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 12 Jun 2019 07:48:30 +0000 (09:48 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-api-macro/src/router_macro.rs

index aa6c7131f215508a30e1c228f23233ae9aab862f..034db0ffa890fcc55ea022df8232f54386dee46d 100644 (file)
@@ -197,10 +197,13 @@ impl Router {
 
             quote! {
                 #[allow(non_camel_case_types)]
-                struct #type_name(std::cell::Cell<Option<Router>>, std::sync::Once);
+                struct #type_name(
+                    std::cell::Cell<Option<::proxmox::api::Router>>,
+                    std::sync::Once,
+                );
                 unsafe impl Sync for #type_name {}
                 impl std::ops::Deref for #type_name {
-                    type Target = Router;
+                    type Target = ::proxmox::api::Router;
                     fn deref(&self) -> &Self::Target {
                         self.1.call_once(|| unsafe {
                             self.0.set(Some(#router_expression));