Browse Source

Make the structs public by default

Getty Ritter 4 years ago
parent
commit
4688c3bf28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -1,7 +1,7 @@
 #[macro_export]
 macro_rules! system {
     ($name:ident $pat:tt { $($rest:tt)* } ) => {
-        struct $name;
+        pub struct $name;
         impl<'a> specs::System<'a> for $name {
             type SystemData = args_to_systemdata!($pat);
             fn run(&mut self, args_to_pat!($pat): Self::SystemData) {
@@ -12,7 +12,7 @@ macro_rules! system {
         }
     };
     ($name:ident $pat:tt { $($rest:tt)* } finally { $($finally:tt)* }) => {
-        struct $name;
+        pub struct $name;
         impl<'a> specs::System<'a> for $name {
             type SystemData = args_to_systemdata!($pat);
             fn run(&mut self, args_to_pat!($pat): Self::SystemData) {