From 87e9b982b6be4cfc4b362863e4110770f88bf4b5 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 20 Jan 2020 23:05:39 -0800 Subject: [PATCH] Sort `Create` opt struct fields Sort fields of torrent::Create. type: reform --- src/torrent/create.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/torrent/create.rs b/src/torrent/create.rs index 56dd809..b1252f6 100644 --- a/src/torrent/create.rs +++ b/src/torrent/create.rs @@ -2,26 +2,26 @@ use crate::common::*; #[derive(StructOpt)] pub(crate) struct Create { - #[structopt(name = "INPUT", long = "input")] - input: PathBuf, - #[structopt(name = "OUTPUT", long = "output")] - output: Option, - #[structopt(name = "PRIVATE", long = "private")] - private: bool, - #[structopt(name = "NO-CREATION-DATE", long = "no-creation-date")] - no_creation_date: bool, - #[structopt(name = "NO-CREATED-BY", long = "no-created-by")] - no_created_by: bool, - #[structopt(name = "COMMENT", long = "comment")] - comment: Option, - #[structopt(name = "PIECE-LENGTH", long = "piece-length", default_value = "524288")] - piece_length: u32, #[structopt(name = "ANNOUNCE", long = "announce", required(true))] announce: Vec, + #[structopt(name = "COMMENT", long = "comment")] + comment: Option, + #[structopt(name = "INPUT", long = "input")] + input: PathBuf, #[structopt(name = "MD5SUM", long = "md5sum")] md5sum: bool, #[structopt(name = "NAME", long = "name")] name: Option, + #[structopt(name = "NO-CREATED-BY", long = "no-created-by")] + no_created_by: bool, + #[structopt(name = "NO-CREATION-DATE", long = "no-creation-date")] + no_creation_date: bool, + #[structopt(name = "OUTPUT", long = "output")] + output: Option, + #[structopt(name = "PIECE-LENGTH", long = "piece-length", default_value = "524288")] + piece_length: u32, + #[structopt(name = "PRIVATE", long = "private")] + private: bool, } impl Create {