chore: upgrade to edition 2024

Co-authored-by: Ehren Bendler <a5ehren@gmail.com>
This commit is contained in:
GideonBear
2025-11-15 18:23:06 +01:00
parent 54a722be21
commit b00c4c1503
25 changed files with 65 additions and 75 deletions

View File

@@ -9,7 +9,7 @@ use std::time::Duration;
use crate::breaking_changes::{first_run_of_major_release, print_breaking_changes, should_skip, write_keep_file};
use clap::CommandFactory;
use clap::{crate_version, Parser};
use clap::{Parser, crate_version};
use color_eyre::eyre::Context;
use color_eyre::eyre::Result;
use console::Key;
@@ -99,7 +99,7 @@ fn run() -> Result<()> {
let mut parts = env.split('=');
let var = parts.next().unwrap();
let value = parts.next().unwrap();
env::set_var(var, value);
unsafe { env::set_var(var, value) };
}
if opt.edit_config() {
@@ -322,11 +322,7 @@ fn run() -> Result<()> {
);
}
if failed {
Err(StepFailed.into())
} else {
Ok(())
}
if failed { Err(StepFailed.into()) } else { Ok(()) }
}
fn main() {