Skip to content

Commit 9132e4d

Browse files
committed
Move ref_binding_to_reference to pedantic
1 parent 20febf7 commit 9132e4d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14021402
LintId::of(misc_early::UNSEPARATED_LITERAL_SUFFIX),
14031403
LintId::of(mut_mut::MUT_MUT),
14041404
LintId::of(needless_bitwise_bool::NEEDLESS_BITWISE_BOOL),
1405+
LintId::of(needless_borrow::REF_BINDING_TO_REFERENCE),
14051406
LintId::of(needless_continue::NEEDLESS_CONTINUE),
14061407
LintId::of(needless_for_each::NEEDLESS_FOR_EACH),
14071408
LintId::of(needless_pass_by_value::NEEDLESS_PASS_BY_VALUE),
@@ -1645,7 +1646,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16451646
LintId::of(needless_arbitrary_self_type::NEEDLESS_ARBITRARY_SELF_TYPE),
16461647
LintId::of(needless_bool::BOOL_COMPARISON),
16471648
LintId::of(needless_bool::NEEDLESS_BOOL),
1648-
LintId::of(needless_borrow::REF_BINDING_TO_REFERENCE),
16491649
LintId::of(needless_borrowed_ref::NEEDLESS_BORROWED_REFERENCE),
16501650
LintId::of(needless_question_mark::NEEDLESS_QUESTION_MARK),
16511651
LintId::of(needless_update::NEEDLESS_UPDATE),
@@ -1829,7 +1829,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18291829
LintId::of(misc_early::REDUNDANT_PATTERN),
18301830
LintId::of(mut_mutex_lock::MUT_MUTEX_LOCK),
18311831
LintId::of(mut_reference::UNNECESSARY_MUT_PASSED),
1832-
LintId::of(needless_borrow::REF_BINDING_TO_REFERENCE),
18331832
LintId::of(neg_multiply::NEG_MULTIPLY),
18341833
LintId::of(new_without_default::NEW_WITHOUT_DEFAULT),
18351834
LintId::of(non_copy_const::BORROW_INTERIOR_MUTABLE_CONST),

clippy_lints/src/needless_borrow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare_clippy_lint! {
6060
/// }
6161
/// ```
6262
pub REF_BINDING_TO_REFERENCE,
63-
style,
63+
pedantic,
6464
"`ref` binding to a reference"
6565
}
6666

0 commit comments

Comments
 (0)