pubsub: Move common attributes to the module.

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-14 17:49:25 +02:00
parent b37a8da906
commit 688ae145be
2 changed files with 5 additions and 3 deletions

View file

@ -16,9 +16,7 @@ use ns;
use data_forms::DataForm;
generate_id!(NodeName);
generate_id!(ItemId);
generate_id!(SubscriptionId);
use pubsub::{NodeName, ItemId, SubscriptionId};
#[derive(Debug, Clone)]
pub struct Item {

View file

@ -7,3 +7,7 @@
pub mod event;
pub use self::event::PubSubEvent;
generate_id!(NodeName);
generate_id!(ItemId);
generate_id!(SubscriptionId);