diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2022-09-15 18:56:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 18:56:02 +0000 |
commit | 82a3207671e3a01eb011129e1f34b653ca7eb39c (patch) | |
tree | df7667ba5db89c496db7a26e2628f32e56f17f65 /src/main.rs | |
parent | Add tooltip on QR code (diff) | |
parent | Merge pull request #902 from kianmeng/fix-typos (diff) | |
download | miniserve-82a3207671e3a01eb011129e1f34b653ca7eb39c.tar.gz miniserve-82a3207671e3a01eb011129e1f34b653ca7eb39c.zip |
Merge branch 'master' into qrcode
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 11193cc..b49089b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,6 @@ use actix_web::{middleware, App, HttpRequest, HttpResponse}; use actix_web_httpauth::middleware::HttpAuthentication; use anyhow::Result; use clap::{crate_version, IntoApp, Parser}; -use clap_complete::generate; use fast_qr::QRBuilder; use log::{error, warn}; use yansi::{Color, Paint}; @@ -36,7 +35,7 @@ fn main() -> Result<()> { if let Some(shell) = args.print_completions { let mut clap_app = args::CliArgs::command(); let app_name = clap_app.get_name().to_string(); - generate(shell, &mut clap_app, app_name, &mut io::stdout()); + clap_complete::generate(shell, &mut clap_app, app_name, &mut io::stdout()); return Ok(()); } @@ -300,7 +299,7 @@ fn configure_app(app: &mut web::ServiceConfig, conf: &MiniserveConfig) { if conf.spa { files = files.default_handler( NamedFile::open(&conf.path.join(index_file)) - .expect("Cant open SPA index file."), + .expect("Can't open SPA index file."), ); } } |