is_hidden_module accepts modules' names instead of modules themselves
@@ -28,7 +28,7 @@ pub fn generate_html(
let modules = analysed
.iter()
.filter(|module| !module.is_test())
- .filter(|module| !config.is_hidden_module(module));
+ .filter(|module| !config.is_hidden_module(&module.name));
let rendering_timestamp = SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
