about summary refs log tree commit diff
path: root/src/format-diff
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2019-09-08 23:33:21 +0900
committerGitHub <noreply@github.com>2019-09-08 23:33:21 +0900
commitceca01465a0fe06749b3ac80ae52095f999e495a (patch)
tree8afbc8833d9a6a54f16d34bccb5824401a0ddb79 /src/format-diff
parent6fec3a69ec44a8fcc4a0c4e2c2c223da4f0b0161 (diff)
downloadrust-ceca01465a0fe06749b3ac80ae52095f999e495a.tar.gz
rust-ceca01465a0fe06749b3ac80ae52095f999e495a.zip
Update deps (#3788)
Diffstat (limited to 'src/format-diff')
-rw-r--r--src/format-diff/main.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/format-diff/main.rs b/src/format-diff/main.rs
index 5bfdcbd0420..afe1ec5d068 100644
--- a/src/format-diff/main.rs
+++ b/src/format-diff/main.rs
@@ -58,10 +58,8 @@ impl From<io::Error> for FormatDiffError {
 #[derive(StructOpt, Debug)]
 #[structopt(
     name = "rustfmt-format-diff",
-    author = "",
-    about = "",
-    raw(setting = "AppSettings::DisableVersion"),
-    raw(setting = "AppSettings::NextLineHelp")
+    setting = AppSettings::DisableVersion,
+    setting = AppSettings::NextLineHelp
 )]
 pub struct Opts {
     /// Skip the smallest prefix containing NUMBER slashes
@@ -78,7 +76,7 @@ pub struct Opts {
         short = "f",
         long = "filter",
         value_name = "PATTERN",
-        raw(default_value = "DEFAULT_PATTERN")
+        default_value = DEFAULT_PATTERN
     )]
     filter: String,
 }