Skip to content

Commit b581e63

Browse files
committed
address copilot feedback
1 parent daccab1 commit b581e63

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

dsc_lib/src/configure/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ impl Configurator {
904904
self.context.copy.insert(copy.name.clone(), i);
905905
let mut new_resource = resource.clone();
906906
let Value::String(new_name) = self.statement_parser.parse_and_execute(&resource.name, &self.context)? else {
907-
return Err(DscError::Parser(t!("configure.mod.copyNameResultNotString", name = &copy.name).to_string()))
907+
return Err(DscError::Parser(t!("configure.mod.copyNameResultNotString").to_string()))
908908
};
909909
new_resource.name = new_name.to_string();
910910
new_resource.copy = None;

dsc_lib/src/functions/copy_index.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
use core::option::Option::Some;
5-
64
use crate::DscError;
75
use crate::configure::context::{Context, ProcessMode};
86
use crate::functions::{FunctionArgKind, Function, FunctionCategory, FunctionMetadata};

0 commit comments

Comments
 (0)