File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -209,9 +209,7 @@ fn main() -> Result<()> {
209209 . exercises_to_json ( exercises)
210210 . expect ( "Couldn't parse rustlings exercises files" ) ;
211211
212- if project. crates . is_empty ( ) {
213- println ! ( "Failed find any exercises, make sure you're in the `rustlings` folder" ) ;
214- } else if project. write_to_disk ( ) . is_err ( ) {
212+ if project. write_to_disk ( ) . is_err ( ) {
215213 println ! ( "Failed to write rust-project.json to disk for rust-analyzer" ) ;
216214 } else {
217215 println ! ( "Successfully generated rust-project.json" ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use crate::exercise::Exercise;
1212#[ derive( Serialize , Deserialize ) ]
1313pub struct RustAnalyzerProject {
1414 sysroot_src : String ,
15- pub crates : Vec < Crate > ,
15+ crates : Vec < Crate > ,
1616}
1717
1818#[ derive( Serialize , Deserialize ) ]
You can’t perform that action at this time.
0 commit comments