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)
98
98
let crate_list: SourceList =
99
99
toml:: from_str ( & toml_content) . unwrap_or_else ( |e| panic ! ( "Failed to parse {}: \n {e}" , toml_path. display( ) ) ) ;
100
100
// 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 ( ) ;
102
102
103
103
// flatten TomlCrates into CrateSources (one TomlCrates may represent several versions of a crate =>
104
- // multiple Cratesources )
104
+ // multiple CrateSources )
105
105
let mut crate_sources = Vec :: new ( ) ;
106
- for tk in tomlcrates {
106
+ for tk in toml_crates {
107
107
if let Some ( ref path) = tk. path {
108
108
crate_sources. push ( CrateWithSource {
109
109
name : tk. name . clone ( ) ,
You can’t perform that action at this time.
0 commit comments