diff --git a/Cargo.toml b/Cargo.toml index 7835ccc..12ed8d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,14 +2,14 @@ authors = ["Ajeet D'Souza <98ajeet@gmail.com>"] categories = ["command-line-utilities", "filesystem"] description = "A smarter cd command for your terminal" -edition = "2021" +edition = "2024" homepage = "https://github.com/ajeetdsouza/zoxide" keywords = ["cli", "filesystem", "shell", "tool", "utility"] license = "MIT" name = "zoxide" readme = "README.md" repository = "https://github.com/ajeetdsouza/zoxide" -rust-version = "1.74.1" +rust-version = "1.85.0" version = "0.9.7" [badges] diff --git a/src/main.rs b/src/main.rs index 1ff26f3..d4ddd6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,8 +18,8 @@ use crate::error::SilentExit; pub fn main() -> ExitCode { // Forcibly disable backtraces. - env::remove_var("RUST_LIB_BACKTRACE"); - env::remove_var("RUST_BACKTRACE"); + unsafe { env::remove_var("RUST_LIB_BACKTRACE") }; + unsafe { env::remove_var("RUST_BACKTRACE") }; match Cmd::parse().run() { Ok(()) => ExitCode::SUCCESS,