Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 committed Nov 23, 2023
1 parent a434f35 commit 2bd4068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl Shuttle {
) -> Result<CommandOutcome> {
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}");
Expand Down Expand Up @@ -621,17 +621,11 @@ impl Shuttle {
Ok(CommandOutcome::Ok)
}

fn complete(
&self,
shell: Shell,
output: Option<PathBuf>,
) -> Result<CommandOutcome> {
fn complete(&self, shell: Shell, output: Option<PathBuf>) -> Result<CommandOutcome> {
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)
Expand Down Expand Up @@ -2001,8 +1995,6 @@ impl Shuttle {
}
}



fn is_dirty(repo: &Repository) -> Result<()> {
let mut status_options = StatusOptions::new();
status_options.include_untracked(true);
Expand Down
2 changes: 1 addition & 1 deletion examples
Submodule examples updated 46 files
+2 −2 actix-web/cookie-authentication/Cargo.toml
+2 −2 actix-web/hello-world/Cargo.toml
+3 −3 actix-web/postgres/Cargo.toml
+2 −2 actix-web/static-files/Cargo.toml
+2 −2 actix-web/websocket-actorless/Cargo.toml
+2 −2 axum/hello-world/Cargo.toml
+2 −2 axum/jwt-authentication/Cargo.toml
+3 −3 axum/metadata/Cargo.toml
+3 −3 axum/postgres/Cargo.toml
+2 −2 axum/static-files/Cargo.toml
+2 −2 axum/static-next-server/Cargo.toml
+3 −3 axum/turso/Cargo.toml
+2 −2 axum/websocket/Cargo.toml
+2 −2 axum/with-state/Cargo.toml
+3 −3 custom-resource/pdo/Cargo.toml
+1 −1 custom-service/none/Cargo.toml
+2 −2 custom-service/request-scheduler/Cargo.toml
+4 −4 fullstack-templates/saas/backend/Cargo.toml
+1 −1 next/hello-world/Cargo.toml
+3 −3 other/standalone-binary/Cargo.toml
+2 −2 poem/hello-world/Cargo.toml
+3 −3 poem/mongodb/Cargo.toml
+3 −3 poem/postgres/Cargo.toml
+3 −3 poise/hello-world/Cargo.toml
+4 −4 rocket/dyn-templates/Cargo.toml
+3 −3 rocket/hello-world/Cargo.toml
+3 −3 rocket/jwt-authentication/Cargo.toml
+2 −2 rocket/jwt-authentication/src/claims.rs
+4 −4 rocket/persist/Cargo.toml
+2 −2 rocket/persist/src/main.rs
+4 −4 rocket/postgres/Cargo.toml
+2 −2 rocket/postgres/src/main.rs
+4 −4 rocket/secrets/Cargo.toml
+3 −3 rocket/static-files/Cargo.toml
+4 −4 rocket/url-shortener/Cargo.toml
+3 −3 rocket/workspace/hello-world/Cargo.toml
+2 −2 salvo/hello-world/Cargo.toml
+3 −3 serenity/hello-world/Cargo.toml
+4 −4 serenity/postgres/Cargo.toml
+2 −2 thruster/hello-world/Cargo.toml
+3 −3 thruster/postgres/Cargo.toml
+2 −2 tide/hello-world/Cargo.toml
+3 −3 tide/postgres/Cargo.toml
+2 −2 tower/hello-world/Cargo.toml
+2 −2 tracing/custom-tracing-subscriber/Cargo.toml
+2 −2 warp/hello-world/Cargo.toml

0 comments on commit 2bd4068

Please sign in to comment.