mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-19 04:04:06 +01:00
chore: Update dependencies
This commit is contained in:
1 parent
cd9f256f33
commit
8ddb09eff3
16 files changed
+150
-203
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use structopt::StructOpt;
|
||||
use clap::Parser;
|
||||
|
||||
pub const DICT: &str = include_str!("../../assets/dictionary.txt");
|
||||
|
||||
@@ -43,17 +43,16 @@ fn generate<W: std::io::Write>(file: &mut W) {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
#[derive(Debug, StructOpt)]
|
||||
#[structopt(rename_all = "kebab-case")]
|
||||
#[derive(Debug, Parser)]
|
||||
struct Options {
|
||||
#[structopt(flatten)]
|
||||
#[clap(flatten)]
|
||||
codegen: codegenrs::CodeGenArgs,
|
||||
#[structopt(flatten)]
|
||||
#[clap(flatten)]
|
||||
rustmft: codegenrs::RustfmtArgs,
|
||||
}
|
||||
|
||||
fn run() -> Result<i32, Box<dyn std::error::Error>> {
|
||||
let options = Options::from_args();
|
||||
let options = Options::parse();
|
||||
|
||||
let mut content = vec![];
|
||||
generate(&mut content);
|
||||
|
||||
Reference in new issue
Block a user