mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
Remove duplicated code
This commit is contained in:
parent
816147c4b5
commit
90764fc54b
@ -58,10 +58,6 @@ where
|
||||
return Err(ExpandError::ConversionError);
|
||||
}
|
||||
|
||||
if tree_sink.roots.len() != 1 {
|
||||
return Err(ExpandError::ConversionError);
|
||||
}
|
||||
|
||||
Ok(tree_sink.inner.finish())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user