diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2021-10-04 23:56:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 23:56:18 -0700 |
| commit | eeadc9d63fe56ce0faf89f5d449af750ecf554be (patch) | |
| tree | 8c99db4a05010a85042635bcf5552358364cdd2a /library/alloc/src | |
| parent | 52d3afaa0cf046647a993e2f43705d5505133f75 (diff) | |
| parent | f83853e3426f829ec5331cbd62628ce23013df43 (diff) | |
| download | rust-eeadc9d63fe56ce0faf89f5d449af750ecf554be.tar.gz rust-eeadc9d63fe56ce0faf89f5d449af750ecf554be.zip | |
Rollup merge of #89244 - DeveloperC286:pair_slices_fields_to_private, r=joshtriplett
refactor: VecDeques PairSlices fields to private Reducing VecDeque's PairSlices fields to private, a `from(...)` method is already used to create PairSlices.
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/collections/vec_deque/pair_slices.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/collections/vec_deque/pair_slices.rs b/library/alloc/src/collections/vec_deque/pair_slices.rs index 8e3ac9cfd1d..6735424a3ef 100644 --- a/library/alloc/src/collections/vec_deque/pair_slices.rs +++ b/library/alloc/src/collections/vec_deque/pair_slices.rs @@ -20,10 +20,10 @@ use super::VecDeque; /// /// and the uneven remainder of either A or B is skipped. pub struct PairSlices<'a, 'b, T> { - pub(crate) a0: &'a mut [T], - pub(crate) a1: &'a mut [T], - pub(crate) b0: &'b [T], - pub(crate) b1: &'b [T], + a0: &'a mut [T], + a1: &'a mut [T], + b0: &'b [T], + b1: &'b [T], } impl<'a, 'b, T> PairSlices<'a, 'b, T> { |
