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<()> {
209
209
. exercises_to_json ( exercises)
210
210
. expect ( "Couldn't parse rustlings exercises files" ) ;
211
211
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 ( ) {
215
213
println ! ( "Failed to write rust-project.json to disk for rust-analyzer" ) ;
216
214
} else {
217
215
println ! ( "Successfully generated rust-project.json" ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use crate::exercise::Exercise;
12
12
#[ derive( Serialize , Deserialize ) ]
13
13
pub struct RustAnalyzerProject {
14
14
sysroot_src : String ,
15
- pub crates : Vec < Crate > ,
15
+ crates : Vec < Crate > ,
16
16
}
17
17
18
18
#[ derive( Serialize , Deserialize ) ]
You can’t perform that action at this time.
0 commit comments