bump deps

This commit is contained in:
2025-02-23 08:24:29 +01:00
parent 2c3a051318
commit 438e68170d
4 changed files with 241 additions and 146 deletions

View File

@@ -1,4 +1,4 @@
use std::{fs, path::Path};
use std::fs;
use indicatif::{ProgressBar, ProgressStyle};
@@ -142,10 +142,10 @@ pub fn prefix(tag_name: &str) -> String {
pub fn random_string(length: u32) -> String {
use rand::Rng;
let mut rng = rand::thread_rng();
let mut rng = rand::rng();
let mut result = String::new();
for _ in 0..length {
let random: u8 = rng.gen_range(33..127);
let random: u8 = rng.random_range(33..127);
result.push(random as char);
}
result

View File

@@ -19,7 +19,7 @@ pub struct Game<'a> {
pub required: Vec<&'a str>,
}
impl<'a> Game<'a> {
impl Game<'_> {
pub fn required_files_exist(&self, dir: &Path) -> bool {
for required_file in &self.required {
let file_path = dir.join(required_file);