Skip to content

Commit b9716dd

Browse files
fix-typos
1 parent 8dd459d commit b9716dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lintcheck/src/input.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)