@@ -128,7 +128,7 @@ pub enum FileServerResponse {
128
128
}
129
129
130
130
// These might have to remain as basic options (always processed first)
131
- struct DotFiles ;
131
+ pub struct DotFiles ;
132
132
impl Rewrite for DotFiles {
133
133
fn rewrite ( & self , _req : & Request < ' _ > , path : FileServerResponse , _root : & Path )
134
134
-> FileServerResponse
@@ -147,7 +147,7 @@ impl Rewrite for DotFiles {
147
147
// }
148
148
// }
149
149
150
- struct Index ( & ' static str ) ;
150
+ pub struct Index ( pub & ' static str ) ;
151
151
impl Rewrite for Index {
152
152
fn rewrite ( & self , _req : & Request < ' _ > , path : FileServerResponse , root : & Path )
153
153
-> FileServerResponse
@@ -161,7 +161,7 @@ impl Rewrite for Index {
161
161
}
162
162
// Actually, curiously, this already just works as-is (the only thing that prevents
163
163
// it is the startup check)
164
- struct IndexFile ;
164
+ pub struct IndexFile ;
165
165
impl Rewrite for IndexFile {
166
166
fn rewrite ( & self , _req : & Request < ' _ > , path : FileServerResponse , _root : & Path )
167
167
-> FileServerResponse
@@ -172,7 +172,7 @@ impl Rewrite for IndexFile {
172
172
}
173
173
}
174
174
175
- struct NormalizeDirs ;
175
+ pub struct NormalizeDirs ;
176
176
impl Rewrite for NormalizeDirs {
177
177
fn rewrite ( & self , req : & Request < ' _ > , path : FileServerResponse , root : & Path )
178
178
-> FileServerResponse
0 commit comments