@@ -985,11 +985,21 @@ macro_rules! lazy_static_include_array {
985985 pub static ref $name: [ & ' static str ; $s] = lazy_static_include_array_inner!( $name: [ & ' static str ; $s] , $path) ;
986986 }
987987 } ;
988+ ( pub ( $( $vis: tt) * ) $name: ident: [ & ' static str ; $s: expr] , $path: expr $( , ) * ) => {
989+ lazy_static! {
990+ pub ( $( $vis) * ) static ref $name: [ & ' static str ; $s] = lazy_static_include_array_inner!( $name: [ & ' static str ; $s] , $path) ;
991+ }
992+ } ;
988993 ( pub $name: ident: [ & ' static str ; $s: expr] , $path: expr, $( $paths: expr) , + $( , ) * ) => {
989994 lazy_static! {
990995 pub static ref $name: Vec <[ & ' static str ; $s] > = lazy_static_include_array_inner!( $name: [ & ' static str ; $s] , $path $( , $paths) +) ;
991996 }
992997 } ;
998+ ( pub ( $( $vis: tt) * ) $name: ident: [ & ' static str ; $s: expr] , $path: expr, $( $paths: expr) , + $( , ) * ) => {
999+ lazy_static! {
1000+ pub ( $( $vis) * ) static ref $name: Vec <[ & ' static str ; $s] > = lazy_static_include_array_inner!( $name: [ & ' static str ; $s] , $path $( , $paths) +) ;
1001+ }
1002+ } ;
9931003 ( $name: ident: [ $t: ident; $s: expr] , $path: expr $( , ) * ) => {
9941004 lazy_static! {
9951005 static ref $name: [ $t; $s] = lazy_static_include_array_inner!( $name: [ $t; $s] , $path) ;
@@ -1005,11 +1015,21 @@ macro_rules! lazy_static_include_array {
10051015 pub static ref $name: [ $t; $s] = lazy_static_include_array_inner!( $name: [ $t; $s] , $path) ;
10061016 }
10071017 } ;
1018+ ( pub ( $( $vis: tt) * ) $name: ident: [ $t: ident; $s: expr] , $path: expr $( , ) * ) => {
1019+ lazy_static! {
1020+ pub ( $( $vis) * ) static ref $name: [ $t; $s] = lazy_static_include_array_inner!( $name: [ $t; $s] , $path) ;
1021+ }
1022+ } ;
10081023 ( pub $name: ident: [ $t: ident; $s: expr] , $path: expr, $( $paths: expr) , + $( , ) * ) => {
10091024 lazy_static! {
10101025 pub static ref $name: Vec <[ $t; $s] > = lazy_static_include_array_inner!( $name: [ $t; $s] , $path $( , $paths) +) ;
10111026 }
10121027 } ;
1028+ ( pub ( $( $vis: tt) * ) $name: ident: [ $t: ident; $s: expr] , $path: expr, $( $paths: expr) , + $( , ) * ) => {
1029+ lazy_static! {
1030+ pub ( $( $vis) * ) static ref $name: Vec <[ $t; $s] > = lazy_static_include_array_inner!( $name: [ $t; $s] , $path $( , $paths) +) ;
1031+ }
1032+ } ;
10131033}
10141034
10151035#[ macro_export]
@@ -1024,6 +1044,11 @@ macro_rules! lazy_static_include_array_vec {
10241044 pub static ref $name: Vec <[ & ' static str ; $s] > = lazy_static_include_array_inner!( $name: [ & ' static str ; $s] , Vec $( , $paths) +) ;
10251045 }
10261046 } ;
1047+ ( pub ( $( $vis: tt) * ) $name: ident: [ & ' static str ; $s: expr] , $( $paths: expr) , + $( , ) * ) => {
1048+ lazy_static! {
1049+ pub ( $( $vis) * ) static ref $name: Vec <[ & ' static str ; $s] > = lazy_static_include_array_inner!( $name: [ & ' static str ; $s] , Vec $( , $paths) +) ;
1050+ }
1051+ } ;
10271052 ( $name: ident: [ $t: ident; $s: expr] , $( $paths: expr) , + $( , ) * ) => {
10281053 lazy_static! {
10291054 static ref $name: Vec <[ $t; $s] > = lazy_static_include_array_inner!( $name: [ $t; $s] , Vec $( , $paths) +) ;
@@ -1034,4 +1059,9 @@ macro_rules! lazy_static_include_array_vec {
10341059 pub static ref $name: Vec <[ $t; $s] > = lazy_static_include_array_inner!( $name: [ $t; $s] , Vec $( , $paths) +) ;
10351060 }
10361061 } ;
1062+ ( pub ( $( $vis: tt) * ) $name: ident: [ $t: ident; $s: expr] , $( $paths: expr) , + $( , ) * ) => {
1063+ lazy_static! {
1064+ pub ( $( $vis) * ) static ref $name: Vec <[ $t; $s] > = lazy_static_include_array_inner!( $name: [ $t; $s] , Vec $( , $paths) +) ;
1065+ }
1066+ } ;
10371067}
0 commit comments