change `parser::Attr` from enum to struct
replace uses of `move_iter` with `into_iter` and `mut_iter` with `iter_mut`