libsyntax: add Default implementation to OptVec
This commit is contained in:
parent
4a73c8eac7
commit
f1374a7044
@ -140,6 +140,10 @@ fn ne(&self, other: &OptVec<A>) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Default for OptVec<T> {
|
||||
fn default() -> OptVec<T> { Empty }
|
||||
}
|
||||
|
||||
pub struct OptVecIterator<'self, T> {
|
||||
priv iter: Option<VecIterator<'self, T>>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user