intermodal/src/subcommand.rs
Casey Rodarmor 9f83661374
Configure clippy and lint on push
Enable as many lints as I can stand. I'll definitely add more exceptions as
`clippy::pedantic` and `clippy::restriction` wear me down.

type: testing
2020-04-07 18:55:45 -07:00

15 lines
291 B
Rust

use crate::common::*;
#[derive(StructOpt)]
pub(crate) enum Subcommand {
Torrent(Torrent),
}
impl Subcommand {
pub(crate) fn run(self, env: &mut Environment, unstable: bool) -> Result<(), Error> {
match self {
Self::Torrent(torrent) => torrent.run(env, unstable),
}
}
}