Skip to content

Commit 8b76915

Browse files
author
Michael Wright
committed
matches: remove pub from some items
There is no reason for these to be `pub`. They aren't used anywhere else.
1 parent 81fa758 commit 8b76915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/matches.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ pub enum EndBound<T> {
16431643
}
16441644

16451645
#[derive(Debug, Eq, PartialEq)]
1646-
pub struct SpannedRange<T> {
1646+
struct SpannedRange<T> {
16471647
pub span: Span,
16481648
pub node: (T, EndBound<T>),
16491649
}
@@ -1694,7 +1694,7 @@ where
16941694
ref_count > 1
16951695
}
16961696

1697-
pub fn overlapping<T>(ranges: &[SpannedRange<T>]) -> Option<(&SpannedRange<T>, &SpannedRange<T>)>
1697+
fn overlapping<T>(ranges: &[SpannedRange<T>]) -> Option<(&SpannedRange<T>, &SpannedRange<T>)>
16981698
where
16991699
T: Copy + Ord,
17001700
{

0 commit comments

Comments
 (0)