style: run cargo fmt
This commit is contained in:
5
build.rs
5
build.rs
@@ -1,12 +1,11 @@
|
||||
use clap::{CommandFactory, ValueEnum};
|
||||
use clap_complete::{generate_to, Shell};
|
||||
use clap_complete::{Shell, generate_to};
|
||||
use std::{env, io::Error};
|
||||
|
||||
include!("src/cli/mod.rs");
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
let outdir = env::var_os("SHELL_COMPLETIONS_DIR")
|
||||
.or_else(|| env::var_os("OUT_DIR"));
|
||||
let outdir = env::var_os("SHELL_COMPLETIONS_DIR").or_else(|| env::var_os("OUT_DIR"));
|
||||
|
||||
let Some(outdir) = outdir else {
|
||||
return Ok(());
|
||||
|
||||
Reference in New Issue
Block a user