rust/tests/target/reorder-impl-items.rs

16 lines
438 B
Rust
Raw Normal View History

2018-04-30 09:22:28 +02:00
// rustfmt-reorder_impl_items: true
// The ordering of the folllowing impl items should be idempotent.
impl<'a> Command<'a> {
pub fn send_to(&self, w: &mut io::Write) -> io::Result<()> {
match self {
&Command::Data(ref c) => c.send_to(w),
&Command::Vrfy(ref c) => c.send_to(w),
}
}
pub fn parse(arg: &[u8]) -> Result<Command, ParseError> {
nom_to_result(command(arg))
}
}