Skip to content

Commit

Permalink
Add SpecFromIter ref in the comments directly
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Jan 19, 2021
1 parent 9abd80c commit bc6720f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/alloc/src/vec/spec_from_iter_nested.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
use core::iter::TrustedLen;
use core::ptr::{self};

#[allow(unused_imports)]
use super::SpecFromIter;
use super::{SpecExtend, Vec};

/// Another specialization trait for Vec::from_iter
/// necessary to manually prioritize overlapping specializations
/// see [`SpecFromIter`] for details.
/// see [`SpecFromIter`](super::SpecFromIter) for details.
pub(super) trait SpecFromIterNested<T, I> {
fn from_iter(iter: I) -> Self;
}
Expand Down

0 comments on commit bc6720f

Please sign in to comment.