Skip to content

Commit

Permalink
Drop lazy_static
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Aug 16, 2024
1 parent a8a620d commit f09c841
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ edition = "2021"
anyhow = "^1"
clap = { version = "^4", features = ["derive", "env"] }
git2 = "^0"
lazy_static = "^1"
octocrab = "^0"
serde = "^1"
serde_yml = "^0"
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod helm_config;
mod repo;
mod util;

use std::sync::LazyLock;
use std::{env, str};

use anyhow::{anyhow, Context};
Expand All @@ -13,17 +14,16 @@ use clap::builder::styling::Style;
use clap::{Parser, Subcommand};
use git2::Repository;
use helm_config::ImageRefs;
use lazy_static::lazy_static;
use octocrab::Octocrab;

const BOLD_UNDERLINE: Style = Style::new().bold().underline();
lazy_static! {
static ref GITHUB_TOKEN_HELP: String = format!(
static GITHUB_TOKEN_HELP: LazyLock<String> = LazyLock::new(|| {
format!(
"{BOLD_UNDERLINE}Environment variables:{BOLD_UNDERLINE:#}
GITHUB_TOKEN GitHub token to use for API requests
"
);
}
)
});

/// Program to simplify PCI double approval process across repositories
#[derive(Parser)]
Expand Down
1 change: 1 addition & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use anyhow::Context;
use url::Url;

#[derive(Clone, Debug)]
#[allow(dead_code)]
pub struct Remote {
pub host: url::Host,
pub port: u16,
Expand Down

0 comments on commit f09c841

Please sign in to comment.