Skip to content

Commit 1e43c23

Browse files
committed
refactor(span): rename source_len to normalized_source_len
This is a preparation for introducing a unnormalized source length field
1 parent a200679 commit 1e43c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_config/src/conf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct ConfError {
108108

109109
impl ConfError {
110110
fn from_toml(file: &SourceFile, error: &toml::de::Error) -> Self {
111-
let span = error.span().unwrap_or(0..file.source_len.0 as usize);
111+
let span = error.span().unwrap_or(0..file.normalized_source_len.0 as usize);
112112
Self::spanned(file, error.message(), None, span)
113113
}
114114

0 commit comments

Comments
 (0)