X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=vendor%2Fxflags%2Fexamples%2Flonger.rs;h=199cca0429f1cc2eb409cf816883c468ae2b2737;hb=2b03887add1ca379893ea11d649eab442706f514;hp=7ea9e18d588bd518cc968eecbf02e76953bfb227;hpb=f2b60f7d56372b42cd474522dab4a649f2c6f1a5;p=rustc.git diff --git a/vendor/xflags/examples/longer.rs b/vendor/xflags/examples/longer.rs index 7ea9e18d58..199cca0429 100644 --- a/vendor/xflags/examples/longer.rs +++ b/vendor/xflags/examples/longer.rs @@ -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::from_env_() } + #[allow(dead_code)] pub fn from_vec(args: Vec) -> xflags::Result { Self::from_vec_(args) }