Change terminology from static to associated

This commit is contained in:
James Wang 2019-10-14 14:23:24 -05:00 committed by flip1995
parent 8b50599cb4
commit adf58868e9
No known key found for this signature in database
GPG key ID: 693086869D506637
2 changed files with 11 additions and 11 deletions

View file

@ -10,7 +10,7 @@ use crate::utils::span_help_and_lint;
declare_clippy_lint! {
/// **What it does:** Checks methods that contain a `self` argument but don't use it
///
/// **Why is this bad?** It may be clearer to define the method as a static function instead
/// **Why is this bad?** It may be clearer to define the method as an associated function instead
/// of an instance method if it doesn't require `self`.
///
/// **Known problems:** None.
@ -68,7 +68,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnusedSelf {
UNUSED_SELF,
self_param.span,
"unused `self` argument",
"consider refactoring to a static method or function",
"consider refactoring to a associated function",
)
}
}