diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2021-03-26 03:17:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-25 19:17:37 +0100 |
commit | e7954413e16d5814db5da6389f8d6e0c328812aa (patch) | |
tree | 2840a275019df3e193c7c2f84442740ce7b7e48e /cli/tsc_config.rs | |
parent | 881e1e8164f1661158bac24f7ec03b969a0a8a02 (diff) |
upgrade: Rust 1.51.0 (#9895)
Diffstat (limited to 'cli/tsc_config.rs')
-rw-r--r-- | cli/tsc_config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc_config.rs b/cli/tsc_config.rs index 54ed34bf1..b89b3bf61 100644 --- a/cli/tsc_config.rs +++ b/cli/tsc_config.rs @@ -175,7 +175,7 @@ fn jsonc_to_serde(j: JsonValue) -> Value { #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] -struct TSConfigJson { +struct TsConfigJson { compiler_options: Option<HashMap<String, Value>>, exclude: Option<Vec<String>>, extends: Option<String>, @@ -221,7 +221,7 @@ pub fn parse_config( ) -> Result<(Value, Option<IgnoredCompilerOptions>), AnyError> { assert!(!config_text.is_empty()); let jsonc = jsonc_parser::parse_to_value(config_text)?.unwrap(); - let config: TSConfigJson = serde_json::from_value(jsonc_to_serde(jsonc))?; + let config: TsConfigJson = serde_json::from_value(jsonc_to_serde(jsonc))?; if let Some(compiler_options) = config.compiler_options { parse_compiler_options(&compiler_options, Some(path.to_owned()), false) |