diff --git a/src/config.rs b/src/config.rs index f5f7270b34f6c79366b3a4efe5eb4610e350cf60..f11d2711a72d32c7f60252b5ebed5dc1877521a3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -261,9 +261,9 @@ pub enum CompressionConfig { Gzip, } -impl Into<IndexStrategy> for IndexStrategyConfig { - fn into(self) -> IndexStrategy { - match self { +impl From<IndexStrategyConfig> for IndexStrategy { + fn from(config: IndexStrategyConfig) -> Self { + match config { IndexStrategyConfig::AlwaysShowListing => IndexStrategy::AlwaysShowListing { renderer: Arc::new(default_listing_renderer), },