From 3c2955091f3a3e7901ae7dff6b7e8becf0bd14f5 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 19 Oct 2023 08:33:39 +0100 Subject: [PATCH] chore: clippy --- crates/biome_service/src/file_handlers/javascript.rs | 2 +- crates/biome_service/src/file_handlers/json.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/biome_service/src/file_handlers/javascript.rs b/crates/biome_service/src/file_handlers/javascript.rs index 0d5f0479acec..40fed62cb56d 100644 --- a/crates/biome_service/src/file_handlers/javascript.rs +++ b/crates/biome_service/src/file_handlers/javascript.rs @@ -198,7 +198,7 @@ fn parse( let parser_settings = &settings.as_ref().languages.javascript.parser; let overrides = &settings.as_ref().override_settings; let options = overrides - .as_js_parser_options(&rome_path) + .as_js_parser_options(rome_path) .unwrap_or(JsParserOptions { parse_class_parameter_decorators: parser_settings.parse_class_parameter_decorators, }); diff --git a/crates/biome_service/src/file_handlers/json.rs b/crates/biome_service/src/file_handlers/json.rs index a7fcb342fd4d..830cc94e1565 100644 --- a/crates/biome_service/src/file_handlers/json.rs +++ b/crates/biome_service/src/file_handlers/json.rs @@ -143,7 +143,7 @@ fn parse( }); let options: JsonParserOptions = overrides - .as_json_parser_options(&rome_path) + .as_json_parser_options(rome_path) .unwrap_or(JsonParserOptions { allow_comments: parser.allow_comments || source_type.is_jsonc()