diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 477e8188b8..48a9377ef4 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -3080,8 +3080,10 @@ mod tests { let package_json_path = project_root().join("editors/code/package.json"); let mut package_json = fs::read_to_string(&package_json_path).unwrap(); - let start_marker = " { \"title\": \"$generated-start\" },\n"; - let end_marker = " { \"title\": \"$generated-end\" }\n"; + let start_marker = + " {\n \"title\": \"$generated-start\"\n },\n"; + let end_marker = + " {\n \"title\": \"$generated-end\"\n }\n"; let start = package_json.find(start_marker).unwrap() + start_marker.len(); let end = package_json.find(end_marker).unwrap();