Skip to content

Commit

Permalink
fix: clap v3 beta breaking changes (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted authored Nov 1, 2021
1 parent e20607c commit 9d056b1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 26 deletions.
49 changes: 28 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blackd-client"
version = "0.0.4"
version = "0.0.5"
authors = ["disrupted <hi@salomonpopp.me>"]
categories = ["command-line-utilities"]
edition = "2018"
Expand All @@ -11,7 +11,7 @@ repository = "https://github.com/disrupted/blackd-client"
description = "Blazing fast Python code formatting using Black"

[dependencies]
clap = "3.0.0-beta.2"
clap = "3.0.0-beta.5"
custom_error = "1.9.2"
minreq = "2.3.1"

Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use clap::{crate_version, AppSettings, Clap};
use clap::{crate_version, Parser};
use custom_error::custom_error;
use std::{io, io::prelude::*};

/// Tiny HTTP client for the Black (blackd) Python code formatter
#[derive(Clap)]
#[derive(Parser)]
#[clap(version = crate_version!())]
#[clap(setting = AppSettings::ColoredHelp)]
struct Opts {
/// URL of blackd server
#[clap(long, default_value = "http://localhost:45484")]
Expand Down

0 comments on commit 9d056b1

Please sign in to comment.