File tree 1 file changed +4
-5
lines changed
src/tools/rust-analyzer/crates/rust-analyzer/src
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2634,9 +2634,8 @@ fn schema(fields: &[SchemaField]) -> serde_json::Value {
2634
2634
. iter ( )
2635
2635
. map ( |( field, ty, doc, default) | {
2636
2636
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 ( ) ) ;
2640
2639
let name = format ! ( "rust-analyzer.{name}" ) ;
2641
2640
let props = field_props ( field, ty, doc, default) ;
2642
2641
serde_json:: json!( {
@@ -3080,9 +3079,9 @@ mod tests {
3080
3079
let package_json_path = project_root ( ) . join ( "editors/code/package.json" ) ;
3081
3080
let mut package_json = fs:: read_to_string ( & package_json_path) . unwrap ( ) ;
3082
3081
3083
- let start_marker =
3082
+ let start_marker =
3084
3083
" {\n \" title\" : \" $generated-start\" \n },\n " ;
3085
- let end_marker =
3084
+ let end_marker =
3086
3085
" {\n \" title\" : \" $generated-end\" \n }\n " ;
3087
3086
3088
3087
let start = package_json. find ( start_marker) . unwrap ( ) + start_marker. len ( ) ;
You can’t perform that action at this time.
0 commit comments