Skip to content

Commit 38ee78f

Browse files
1 parent 78df7ea commit 38ee78f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Source/Configuration/GetConfiguration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ pub fn GetConfiguration(
4343

4444
Box::pin(async move {
4545
let OverridesParsed:ConfigurationOverridesDTO =
46-
serde_json::from_value(OverridesValueClone).map_err(|e| {
46+
serde_json::from_value(OverridesValueClone).map_err(|Error| {
4747
CommonError::InvalidArgument {
4848
ArgumentName:"OverridesValue".to_string(),
4949

50-
Reason:format!("Failed to parse ConfigurationOverridesDTO: {}", e),
50+
Reason:format!("Failed to parse ConfigurationOverridesDTO: {}", Error),
5151
}
5252
})?;
5353

Source/Configuration/InspectConfiguration.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use crate::{Effect::ActionEffect::ActionEffect, Error::CommonError::CommonError}
2525
/// # Parameters
2626
///
2727
/// * `Key`: The dot-separated configuration key to inspect (e.g.,
28-
2928
/// "Editor.FontSize").
3029
/// * `OverridesValue`: A `serde_json::Value` representing the
3130
/// `ConfigurationOverridesDTO`, which can specify a resource or language
@@ -34,7 +33,6 @@ use crate::{Effect::ActionEffect::ActionEffect, Error::CommonError::CommonError}
3433
/// # Returns
3534
///
3635
/// An `ActionEffect` that resolves with an `Option<InspectResultDataDTO>`,
37-
3836
/// containing the detailed breakdown of the configuration value from all
3937
/// scopes.
4038
pub fn InspectConfiguration(
@@ -49,11 +47,11 @@ pub fn InspectConfiguration(
4947

5048
Box::pin(async move {
5149
let OverridesParsed:ConfigurationOverridesDTO =
52-
serde_json::from_value(OverridesValueClone).map_err(|e| {
50+
serde_json::from_value(OverridesValueClone).map_err(|Error| {
5351
CommonError::InvalidArgument {
5452
ArgumentName:"OverridesValue".to_string(),
5553

56-
Reason:format!("Failed to parse ConfigurationOverridesDTO: {}", e),
54+
Reason:format!("Failed to parse ConfigurationOverridesDTO: {}", Error),
5755
}
5856
})?;
5957

0 commit comments

Comments
 (0)