Replace try! with ?

This commit is contained in:
Tim Kuehn
2016-10-16 13:49:53 -07:00
parent 531dc20d66
commit cff8782e18
3 changed files with 16 additions and 16 deletions

View File

@@ -170,7 +170,7 @@ impl<'a> ParseTraitRef for Parser<'a> {
/// Parse a::B<String,i32>
fn parse_trait_ref(&mut self) -> PResult<TraitRef> {
Ok(TraitRef {
path: try!(self.parse_path(PathStyle::Type)),
path: self.parse_path(PathStyle::Type)?,
ref_id: ast::DUMMY_NODE_ID,
})
}