Skip to content

Commit

Permalink
Use const that already exists for default URL
Browse files Browse the repository at this point in the history
  • Loading branch information
inahga committed Sep 13, 2023
1 parent 577379d commit 1f4a2dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ pub const USER_AGENT: &str = concatcp!(
divviup_client::USER_AGENT
);

pub const DEFAULT_DIVVIUP_API_URL: &str = "https://api.divviup.org";

#[derive(ValueEnum, Debug, Default, Clone, Copy)]
enum Output {
#[default]
Expand Down Expand Up @@ -89,7 +87,7 @@ struct ClientBin {
#[arg(short, long, env = "DIVVIUP_TOKEN", hide_env_values = true)]
token: String,

#[arg(short, long, env = "DIVVIUP_API_URL", default_value = DEFAULT_DIVVIUP_API_URL)]
#[arg(short, long, env = "DIVVIUP_API_URL", default_value = divviup_client::DEFAULT_URL)]
url: Url,

#[arg(short, long, env = "DIVVIUP_ACCOUNT_ID")]
Expand Down

0 comments on commit 1f4a2dd

Please sign in to comment.