Skip to content

Commit 457e75e

Browse files
fix-typos
1 parent c6f45df commit 457e75e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lintcheck/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::path::PathBuf;
44

55
#[derive(Parser, Clone, Debug)]
66
#[command(args_conflicts_with_subcommands = true)]
7-
pub(crate) struct LintcheckConfig {
7+
pub(crate) struct LintCheckConfig {
88
/// Number of threads to use (default: all unless --fix or --recursive)
99
#[clap(
1010
long = "jobs",
@@ -87,9 +87,9 @@ impl OutputFormat {
8787
}
8888
}
8989

90-
impl LintcheckConfig {
90+
impl LintCheckConfig {
9191
pub fn new() -> Self {
92-
let mut config = LintcheckConfig::parse();
92+
let mut config = LintCheckConfig::parse();
9393

9494
// for the path where we save the lint results, get the filename without extension (so for
9595
// wasd.toml, use "wasd"...)

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)