Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 4, 2024
1 parent 1cfb021 commit 0ef8ec2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub use std::env::*;
use std::path::PathBuf;
use std::string::ToString;
use std::sync::RwLock;
use std::{env, path, process};
use std::{path, process};

pub static ARGS: RwLock<Vec<String>> = RwLock::new(vec![]);
#[cfg(unix)]
Expand Down Expand Up @@ -124,7 +124,8 @@ pub static MISE_BIN_NAME: Lazy<&str> = Lazy::new(|| filename(&ARGV0));
pub static MISE_LOG_FILE: Lazy<Option<PathBuf>> = Lazy::new(|| var_path("MISE_LOG_FILE"));
pub static MISE_LOG_FILE_LEVEL: Lazy<Option<LevelFilter>> = Lazy::new(log_file_level);

pub static HTTP_PROXY: Lazy<Option<String>> = Lazy::new(|| var("https_proxy").or_else(|_| var("http_proxy")).ok());
pub static HTTP_PROXY: Lazy<Option<String>> =
Lazy::new(|| var("https_proxy").or_else(|_| var("http_proxy")).ok());

pub static __USAGE: Lazy<Option<String>> = Lazy::new(|| var("__USAGE").ok());

Expand Down
2 changes: 1 addition & 1 deletion src/gpg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ fn add_keys(ctx: &InstallContext, keys: &str) -> Result<()> {
.stdin_string(keys)
.with_pr(ctx.pr.as_ref())
.execute()
}
}
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ mod fake_asdf;
mod file;
mod git;
pub(crate) mod github;
mod gpg;
mod hash;
mod hook_env;
mod hooks;
Expand Down Expand Up @@ -68,11 +69,10 @@ mod ui;
mod uv;
mod versions_host;
mod watch_files;
mod gpg;

pub(crate) use crate::exit::exit;
pub(crate) use crate::toolset::install_state;
pub(crate) use crate::result::Result;
pub(crate) use crate::toolset::install_state;
use crate::ui::multi_progress_report::MultiProgressReport;

fn main() -> eyre::Result<()> {
Expand Down
4 changes: 4 additions & 0 deletions tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ run a command inside of development docker container

- **Usage**: `docs:setup`

## `fetch-gpg-keys`

- **Usage**: `fetch-gpg-keys`

## `filetask`

- **Usage**: `filetask [-f --force] [-u --user <user>] [file] [arg_with_default]`
Expand Down

0 comments on commit 0ef8ec2

Please sign in to comment.