syntax: Rename P::unwrap into P::into_inner

This commit is contained in:
Vadim Petrochenkov 2017-12-17 02:21:29 +03:00
parent 3bee2b44cf
commit a4aa26aaa0
7 changed files with 17 additions and 17 deletions

View file

@ -141,7 +141,7 @@ impl<'a> fold::Folder for TestHarnessGenerator<'a> {
}
}
let mut item = i.unwrap();
let mut item = i.into_inner();
// We don't want to recurse into anything other than mods, since
// mods or tests inside of functions will break things
if let ast::ItemKind::Mod(module) = item.node {