Update test_meta_item for removal of IResult
@@ -6,7 +6,6 @@ extern crate proc_macro2;
use proc_macro2::{Literal, TokenStream};
use syn::*;
-use synom::IResult;
fn lit<T: Into<Literal>>(t: T) -> Lit {
Lit {
@@ -98,11 +97,11 @@ fn run_test<T: Into<MetaItem>>(input: &str, expected: T) {
let tokens = input.parse::<TokenStream>().unwrap();
let tokens = tokens.into_iter().collect::<Vec<_>>();
let attr = match Attribute::parse_outer(&tokens) {
- IResult::Done(rest, e) => {
+ Ok((rest, e)) => {
assert!(rest.is_empty());
e
}
- IResult::Error => panic!("failed to parse"),
+ Err(_) => panic!("failed to parse"),
};
assert_eq!(expected.into(), attr.meta_item().unwrap());
}
