Skip to content

Commit

Permalink
matches: remove pub from some items
Browse files Browse the repository at this point in the history
There is no reason for these to be `pub`. They aren't used anywhere
else.
  • Loading branch information
Michael Wright committed Nov 9, 2021
1 parent 81fa758 commit 8b76915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/matches.rs
Expand Up @@ -1643,7 +1643,7 @@ pub enum EndBound<T> {
}

#[derive(Debug, Eq, PartialEq)]
pub struct SpannedRange<T> {
struct SpannedRange<T> {
pub span: Span,
pub node: (T, EndBound<T>),
}
Expand Down Expand Up @@ -1694,7 +1694,7 @@ where
ref_count > 1
}

pub fn overlapping<T>(ranges: &[SpannedRange<T>]) -> Option<(&SpannedRange<T>, &SpannedRange<T>)>
fn overlapping<T>(ranges: &[SpannedRange<T>]) -> Option<(&SpannedRange<T>, &SpannedRange<T>)>
where
T: Copy + Ord,
{
Expand Down

0 comments on commit 8b76915

Please sign in to comment.