From 2bd4068be23f2a8e3104d63eedac3d04c4841b4b Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Thu, 23 Nov 2023 10:05:23 +0100 Subject: [PATCH] fix: fmt --- cargo-shuttle/src/lib.rs | 14 +++----------- examples | 2 +- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index b6d22a3d3f..9281eb7473 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -147,7 +147,7 @@ impl Shuttle { ) -> Result { if let Some(ref url) = args.api_url { if url != API_URL_DEFAULT { - println!("INFO: Targeting non-standard API: {url}"); + eprintln!("INFO: Targeting non-standard API: {url}"); } if url.ends_with('/') { eprintln!("WARNING: API URL is probably incorrect. Ends with '/': {url}"); @@ -621,17 +621,11 @@ impl Shuttle { Ok(CommandOutcome::Ok) } - fn complete( - &self, - shell: Shell, - output: Option, - ) -> Result { + fn complete(&self, shell: Shell, output: Option) -> Result { let name = env!("CARGO_PKG_NAME"); let mut app = Command::command(); match output { - Some(path) => { - generate(shell, &mut app, name, &mut File::create(path)?) - } + Some(path) => generate(shell, &mut app, name, &mut File::create(path)?), None => generate(shell, &mut app, name, &mut stdout()), }; Ok(CommandOutcome::Ok) @@ -2001,8 +1995,6 @@ impl Shuttle { } } - - fn is_dirty(repo: &Repository) -> Result<()> { let mut status_options = StatusOptions::new(); status_options.include_untracked(true); diff --git a/examples b/examples index d596819803..541d2006fc 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit d5968198030994e42e3a3ed42c96e207c289c7cd +Subproject commit 541d2006fc425df26bbfe41003e7f279848e35db