Skip to content

Commit 4bb6c87

Browse files
committed
span -> span()
1 parent b25564f commit 4bb6c87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/attrs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AttrPass {
224224
if let MetaItemKind::NameValue(lit) = &mi.node;
225225
if mi.name() == "since";
226226
then {
227-
check_semver(cx, item.span, lit);
227+
check_semver(cx, item.span(), lit);
228228
}
229229
}
230230
}
@@ -327,7 +327,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
327327
span_lint_and_then(
328328
cx,
329329
UNKNOWN_CLIPPY_LINTS,
330-
lint.span,
330+
lint.span(),
331331
&format!("unknown clippy lint: clippy::{}", name),
332332
|db| {
333333
if name.as_str().chars().any(char::is_uppercase) {
@@ -341,7 +341,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
341341
CheckLintNameResult::NoLint(None) => (),
342342
_ => {
343343
db.span_suggestion(
344-
lint.span,
344+
lint.span(),
345345
"lowercase the lint name",
346346
name_lower,
347347
Applicability::MaybeIncorrect,

0 commit comments

Comments
 (0)