Skip to content

Commit 728001e

Browse files
committed
fmt
1 parent d47848e commit 728001e

File tree

1 file changed

+4
-5
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src

1 file changed

+4
-5
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -2634,9 +2634,8 @@ fn schema(fields: &[SchemaField]) -> serde_json::Value {
26342634
.iter()
26352635
.map(|(field, ty, doc, default)| {
26362636
let name = field.replace('_', ".");
2637-
let category = name.find('.').map(|end| {
2638-
String::from(&name[..end])
2639-
}).unwrap_or("general".into());
2637+
let category =
2638+
name.find('.').map(|end| String::from(&name[..end])).unwrap_or("general".into());
26402639
let name = format!("rust-analyzer.{name}");
26412640
let props = field_props(field, ty, doc, default);
26422641
serde_json::json!({
@@ -3080,9 +3079,9 @@ mod tests {
30803079
let package_json_path = project_root().join("editors/code/package.json");
30813080
let mut package_json = fs::read_to_string(&package_json_path).unwrap();
30823081

3083-
let start_marker =
3082+
let start_marker =
30843083
" {\n \"title\": \"$generated-start\"\n },\n";
3085-
let end_marker =
3084+
let end_marker =
30863085
" {\n \"title\": \"$generated-end\"\n }\n";
30873086

30883087
let start = package_json.find(start_marker).unwrap() + start_marker.len();

0 commit comments

Comments
 (0)