diff options
| author | Michael Wright <mikerite@lavabit.com> | 2021-11-09 05:44:02 +0200 |
|---|---|---|
| committer | Michael Wright <mikerite@lavabit.com> | 2021-11-09 05:44:02 +0200 |
| commit | 8b7691551acb5f27fe54a6b609f12c88eba78631 (patch) | |
| tree | ffe3dd7bbd65dfc57991d9fe7a15fd8b16b2ed76 | |
| parent | 81fa75835652040f2773c44b34830a1107c07550 (diff) | |
| download | rust-8b7691551acb5f27fe54a6b609f12c88eba78631.tar.gz rust-8b7691551acb5f27fe54a6b609f12c88eba78631.zip | |
matches: remove `pub` from some items
There is no reason for these to be `pub`. They aren't used anywhere else.
| -rw-r--r-- | clippy_lints/src/matches.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 97a19d55ccf..8e170f86cbe 100644 --- a/clippy_lints/src/matches.rs +++ b/clippy_lints/src/matches.rs @@ -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>), } @@ -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, { |
