]> git.proxmox.com Git - rustc.git/blobdiff - vendor/xflags/examples/longer.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / xflags / examples / longer.rs
index 7ea9e18d588bd518cc968eecbf02e76953bfb227..199cca0429f1cc2eb409cf816883c468ae2b2737 100644 (file)
@@ -24,10 +24,9 @@ mod flags {
             }
 
             /// Benchmark specific analysis operation
-            cmd analysis-bench
+            cmd analysis-bench {
                 /// Directory with Cargo.toml
                 optional path: PathBuf
-            {
                 /// Compute syntax highlighting for this file
                 required --highlight path: PathBuf
                 /// Compute highlighting for this line
@@ -72,12 +71,12 @@ mod flags {
     }
 
     impl RustAnalyzer {
-        pub const HELP: &'static str = Self::HELP_;
-
+        #[allow(dead_code)]
         pub fn from_env() -> xflags::Result<Self> {
             Self::from_env_()
         }
 
+        #[allow(dead_code)]
         pub fn from_vec(args: Vec<std::ffi::OsString>) -> xflags::Result<Self> {
             Self::from_vec_(args)
         }