{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiccjyuyp2vzxiwctjzldzbm2b5nudcjrke7ta5nyilgo5m2qkdaje",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgsq66cdii72"
  },
  "path": "/t/pre-feature-request-suppress-unused-variable-warning-for-unit-type-arguments/24065#post_14",
  "publishedAt": "2026-03-11T17:52:01.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "Churn on introducing args would be reduced even further if you uniformly pattern matched the argument struct in every subcommand whether it has fields or not\n\n\n    use clap::Args;\n    use super::CommandError;\n\n    #[derive(Clone, Debug, Args)]\n    pub struct SubcommandWithNoOptionsArgs {}\n\n    pub fn subcommand_with_no_options_run(args: SubcommandWithNoOptionsArgs)\n      -> Result<(), CommandError> {\n        let SubcommandwithNoOptionsArgs { } = args;\n        Ok(())\n    }\n",
  "title": "Pre-feature request: suppress unused variable warning for unit-type arguments"
}