Skip to content

Commit

Permalink
Rollup merge of rust-lang#89244 - DeveloperC286:pair_slices_fields_to…
Browse files Browse the repository at this point in the history
…_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.
  • Loading branch information
Manishearth authored Oct 5, 2021
2 parents 117270d + f83853e commit 27eddab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/alloc/src/collections/vec_deque/pair_slices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 27eddab

Please sign in to comment.