diff --git a/crates/rome_service/src/file_handlers/json.rs b/crates/rome_service/src/file_handlers/json.rs index 5283152346c..0f0b3e4bf1c 100644 --- a/crates/rome_service/src/file_handlers/json.rs +++ b/crates/rome_service/src/file_handlers/json.rs @@ -114,7 +114,7 @@ fn parse( let options: JsonParserOptions = JsonParserOptions { allow_comments: parser.allow_comments || source_type.is_jsonc() - || is_file_allowed_as_jsonc(&rome_path), + || is_file_allowed_as_jsonc(rome_path), }; let parse = rome_json_parser::parse_json_with_cache(text, cache, options); let root = parse.syntax();