console-rs / console

A rust console and terminal abstraction
MIT License
932 stars 111 forks source link

compile fails #176

Closed NiiightmareXD closed 1 year ago

NiiightmareXD commented 1 year ago

Every time I'm trying to compile this crate fails with this error

error[E0195]: lifetime parameters or bounds on type Target do not match the trait declaration --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-0.15.7/src/unix_term.rs:343:1 343 / lazy_static::lazy_static! { 344 static ref IS_LANG_UTF8: bool = match std::env::var("LANG") { 345 Ok(lang) => lang.to_uppercase().ends_with("UTF-8"), 346 _ => false, 347 }; 348 } _^ lifetimes do not match type in trait
= note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static::lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)

I'm not sure if this is lazy_static issue or console issue

NiiightmareXD commented 1 year ago

I don't know how but it's fixed