This commit is contained in:
fakeshadow 2021-01-15 04:44:19 +08:00
parent 8eef8d9e10
commit 2bf21631fe
7 changed files with 64 additions and 65 deletions

View File

@ -129,8 +129,7 @@ impl Files {
/// Set custom directory renderer /// Set custom directory renderer
pub fn files_listing_renderer<F>(mut self, f: F) -> Self pub fn files_listing_renderer<F>(mut self, f: F) -> Self
where where
for<'r, 's> F: for<'r, 's> F: Fn(&'r Directory, &'s HttpRequest) -> Result<ServiceResponse, io::Error>
Fn(&'r Directory, &'s HttpRequest) -> Result<ServiceResponse, io::Error>
+ 'static, + 'static,
{ {
self.renderer = Rc::new(f); self.renderer = Rc::new(f);