mirror of https://github.com/jdx/mise
chore: remove unused ctor crate
This commit is contained in:
parent
6d07ed13d4
commit
8163956362
|
@ -916,16 +916,6 @@ dependencies = [
|
|||
"typenum",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ctor"
|
||||
version = "0.2.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"
|
||||
dependencies = [
|
||||
"quote",
|
||||
"syn 2.0.100",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ctr"
|
||||
version = "0.9.2"
|
||||
|
@ -3677,7 +3667,6 @@ dependencies = [
|
|||
"console",
|
||||
"contracts",
|
||||
"crossbeam-channel",
|
||||
"ctor",
|
||||
"demand",
|
||||
"digest",
|
||||
"dotenvy",
|
||||
|
|
|
@ -176,7 +176,6 @@ toml = "0.8"
|
|||
indexmap = "2"
|
||||
|
||||
[dev-dependencies]
|
||||
ctor = "0.2"
|
||||
insta = { version = "1", features = ["filters", "json"] }
|
||||
mockito = "1.6.1"
|
||||
pretty_assertions = "1"
|
||||
|
|
|
@ -84,6 +84,9 @@ pub(crate) use crate::toolset::install_state;
|
|||
use crate::ui::multi_progress_report::MultiProgressReport;
|
||||
|
||||
fn main() -> eyre::Result<()> {
|
||||
if cfg!(test) {
|
||||
test::init();
|
||||
}
|
||||
color_eyre::install()?;
|
||||
measure!("main", {
|
||||
let args = env::args().collect_vec();
|
||||
|
|
|
@ -5,8 +5,7 @@ use indoc::indoc;
|
|||
|
||||
use crate::{env, file};
|
||||
|
||||
#[ctor::ctor]
|
||||
fn init() {
|
||||
pub fn init() {
|
||||
if env::var("RUST_LOG").is_err() {
|
||||
env::set_var("RUST_LOG", "debug")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue