File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,12 @@ pub fn read_crates(toml_path: &Path) -> (Vec<CrateWithSource>, RecursiveOptions)
9898 let crate_list: SourceList =
9999 toml:: from_str ( & toml_content) . unwrap_or_else ( |e| panic ! ( "Failed to parse {}: \n {e}" , toml_path. display( ) ) ) ;
100100 // parse the hashmap of the toml file into a list of crates
101- let tomlcrates : Vec < TomlCrate > = crate_list. crates . into_values ( ) . collect ( ) ;
101+ let toml_crates : Vec < TomlCrate > = crate_list. crates . into_values ( ) . collect ( ) ;
102102
103103 // flatten TomlCrates into CrateSources (one TomlCrates may represent several versions of a crate =>
104- // multiple Cratesources )
104+ // multiple CrateSources )
105105 let mut crate_sources = Vec :: new ( ) ;
106- for tk in tomlcrates {
106+ for tk in toml_crates {
107107 if let Some ( ref path) = tk. path {
108108 crate_sources. push ( CrateWithSource {
109109 name : tk. name . clone ( ) ,
You can’t perform that action at this time.
0 commit comments