Kill a few lines of code

This commit is contained in:
greg 2018-05-06 19:41:13 -07:00
parent e46eeb91f3
commit f1a64adfd9

View File

@ -65,20 +65,10 @@ pub fn derive_programming_language_interface(input: TokenStream) -> TokenStream
let mut chain = pass_chain![self, options; #(#passes),* ]; let mut chain = pass_chain![self, options; #(#passes),* ];
chain(input) chain(input)
} }
fn get_passes(&self) -> Vec<String> { fn get_passes(&self) -> Vec<String> {
vec![ #(#pass_names.to_string()),* ] vec![ #(#pass_names.to_string()),* ]
} }
} }
}; };
tokens.into() tokens.into()
} }
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}