Explorar el Código

Make the structs public by default

Getty Ritter hace 4 años
padre
commit
4688c3bf28
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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) {