@@ -190,14 +190,14 @@ impl ResourceDiscovery for CommandDiscovery {
190
190
191
191
let mut adapted_resources = BTreeMap :: < String , Vec < DscResource > > :: new ( ) ;
192
192
193
- for ( adapter_name, adapters) in self . adapters . iter ( ) {
193
+ for ( adapter_name, adapters) in & self . adapters {
194
194
for adapter in adapters {
195
195
info ! ( "Enumerating resources for adapter '{}'" , adapter_name) ;
196
196
let pb_adapter_span = warn_span ! ( "" ) ;
197
197
pb_adapter_span. pb_set_style ( & ProgressStyle :: with_template (
198
198
"{spinner:.green} [{elapsed_precise:.cyan}] {msg:.white}"
199
199
) ?) ;
200
- pb_adapter_span. pb_set_message ( format ! ( "Enumerating resources for adapter '{}'" , adapter_name ) . as_str ( ) ) ;
200
+ pb_adapter_span. pb_set_message ( format ! ( "Enumerating resources for adapter '{adapter_name }'" ) . as_str ( ) ) ;
201
201
let _ = pb_adapter_span. enter ( ) ;
202
202
let manifest = if let Some ( manifest) = & adapter. manifest {
203
203
if let Ok ( manifest) = import_manifest ( manifest. clone ( ) ) {
@@ -282,7 +282,7 @@ impl ResourceDiscovery for CommandDiscovery {
282
282
let mut found_resources = BTreeMap :: < String , DscResource > :: new ( ) ;
283
283
let mut remaining_required_resource_types = required_resource_types. to_owned ( ) ;
284
284
285
- for ( resource_name, resources) in self . resources . iter ( ) {
285
+ for ( resource_name, resources) in & self . resources {
286
286
let Some ( resource ) = resources. first ( ) else {
287
287
// skip if no resources
288
288
continue ;
@@ -302,7 +302,7 @@ impl ResourceDiscovery for CommandDiscovery {
302
302
debug ! ( "Found {} matching non-adapter-based resources" , found_resources. len( ) ) ;
303
303
304
304
// now go through the adapter resources and add them to the list of resources
305
- for ( adapted_name, adapted_resource) in self . adapted_resources . iter ( ) {
305
+ for ( adapted_name, adapted_resource) in & self . adapted_resources {
306
306
let Some ( adapted_resource) = adapted_resource. first ( ) else {
307
307
// skip if no resources
308
308
continue ;
0 commit comments