Reduce typo count.

This commit is contained in:
Bruce Mitchener 2024-07-20 12:50:36 +07:00
parent 057c4ae287
commit cf4270d13b
9 changed files with 13 additions and 13 deletions

View file

@ -77,10 +77,10 @@ impl ClippyWarning {
.iter()
.find(|span| span.is_primary)
.or(diag.spans.first())
.unwrap_or_else(|| panic!("Diagnositc without span: {diag}"));
.unwrap_or_else(|| panic!("Diagnostic without span: {diag}"));
let file = &span.file_name;
let url = if let Some(src_split) = file.find("/src/") {
// This removes the inital `target/lintcheck/sources/<crate>-<version>/`
// This removes the initial `target/lintcheck/sources/<crate>-<version>/`
let src_split = src_split + "/src/".len();
let (_, file) = file.split_at(src_split);