refactor: switch to rust 2024 edition & handle dependency updates (#6609)

This commit is contained in:
David Knaack
2025-03-09 19:24:45 +01:00
committed by GitHub
parent df454d5a64
commit 2a3ca68457
48 changed files with 429 additions and 247 deletions
+2 -3
View File
@@ -8,7 +8,6 @@ use std::time::SystemTime;
use clap::{CommandFactory, Parser, Subcommand, ValueEnum};
use clap_complete::generate;
use rand::distributions::Alphanumeric;
use rand::Rng;
use starship::context::{Context, Properties, Target};
use starship::module::ALL_MODULES;
@@ -269,8 +268,8 @@ fn main() {
Commands::Completions { shell } => generate_completions(shell),
Commands::Session => println!(
"{}",
rand::thread_rng()
.sample_iter(&Alphanumeric)
rand::rng()
.sample_iter(rand::distr::Alphanumeric)
.take(16)
.map(char::from)
.collect::<String>()