librustc: Fix merge fallout.
This commit is contained in:
parent
3c9e9d35ac
commit
a4dd3fe2f2
18 changed files with 130 additions and 99 deletions
|
|
@ -1039,8 +1039,13 @@ pub enum ViewItemInner {
|
|||
impl Clean<ViewItemInner> for ast::ViewItem_ {
|
||||
fn clean(&self) -> ViewItemInner {
|
||||
match self {
|
||||
&ast::ViewItemExternMod(ref i, ref p, ref id) =>
|
||||
ExternMod(i.clean(), p.map(|(ref x, _)| x.to_owned()), *id),
|
||||
&ast::ViewItemExternMod(ref i, ref p, ref id) => {
|
||||
let string = match *p {
|
||||
None => None,
|
||||
Some((ref x, _)) => Some(x.get().to_owned()),
|
||||
};
|
||||
ExternMod(i.clean(), string, *id)
|
||||
}
|
||||
&ast::ViewItemUse(ref vp) => Import(vp.clean())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue