File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,14 +69,14 @@ pub fn add_resource_export_results_to_configuration(resource: &DscResource, conf
69
69
let mut r = config_doc:: Resource :: new ( ) ;
70
70
let mut props: Map < String , Value > = serde_json:: from_value ( instance. clone ( ) ) ?;
71
71
if let Some ( kind) = props. remove ( "_kind" ) {
72
- r. kind = kind. as_str ( ) . map ( |s| s . to_string ( ) ) ;
72
+ r. kind = kind. as_str ( ) . map ( std :: string :: ToString :: to_string) ;
73
73
}
74
74
if let Some ( security_context) = props. remove ( "_securityContext" ) {
75
- r. security_context = security_context. as_str ( ) . map ( |s| s . to_string ( ) ) ;
75
+ r. security_context = security_context. as_str ( ) . map ( std :: string :: ToString :: to_string) ;
76
76
}
77
77
r. name = if let Some ( name) = props. remove ( "_name" ) {
78
78
name. as_str ( )
79
- . map ( |s| s . to_string ( ) )
79
+ . map ( std :: string :: ToString :: to_string)
80
80
. ok_or_else ( || DscError :: Parser ( t ! ( "configure.mod.valueCouldNotBeTransformedAsString" , value = name) . to_string ( ) ) ) ?
81
81
} else {
82
82
format ! ( "{}-{}" , r. resource_type, i)
You can’t perform that action at this time.
0 commit comments