Skip to content

Commit 4844a3b

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix clippy
1 parent 73e66fe commit 4844a3b

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

dsc_lib/src/configure/config_doc.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub enum ExecutionKind {
3333
WhatIf,
3434
}
3535

36-
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, JsonSchema)]
36+
#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize, JsonSchema)]
3737
pub struct MicrosoftDscMetadata {
3838
/// Version of DSC
3939
#[serde(skip_serializing_if = "Option::is_none")]
@@ -61,21 +61,6 @@ pub struct MicrosoftDscMetadata {
6161
pub context: Option<ContextKind>,
6262
}
6363

64-
impl Default for MicrosoftDscMetadata {
65-
fn default() -> Self {
66-
Self {
67-
version: None,
68-
operation: None,
69-
execution_type: None,
70-
start_datetime: None,
71-
end_datetime: None,
72-
duration: None,
73-
security_context: None,
74-
context: None,
75-
}
76-
}
77-
}
78-
7964
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, JsonSchema)]
8065
pub struct Metadata {
8166
#[serde(rename = "Microsoft.DSC", skip_serializing_if = "Option::is_none")]

dsc_lib/src/configure/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ impl Configurator {
282282
/// # Errors
283283
///
284284
/// This function will return an error if the underlying resource fails.
285+
#[allow(clippy::too_many_lines)]
285286
pub fn invoke_set(&mut self, skip_test: bool, _error_action: ErrorAction, _progress_callback: impl Fn() + 'static) -> Result<ConfigurationSetResult, DscError> {
286287
let config = self.validate_config()?;
287288
let mut result = ConfigurationSetResult::new();

0 commit comments

Comments
 (0)