Skip to content

Commit 7451662

Browse files
committed
fixed factory not being generic
1 parent 436fbde commit 7451662

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/resource_files.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ impl<C> From<&ResourceFiles<C>> for ResolveDefaultsGuard<C> {
253253
}
254254
}
255255

256-
impl HttpServiceFactory for ResourceFiles {
256+
impl<C> HttpServiceFactory for ResourceFiles<C>
257+
where
258+
C: ResourceFilesCollection + 'static,
259+
{
257260
fn register(self, config: &mut AppService) {
258261
let prefix = self.path.trim_start_matches('/');
259262
let rdef = if config.is_root() {

0 commit comments

Comments
 (0)