fix: resolve compilation errors by fixing reserved keyword usage and removing unused imports

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-15 13:01:46 -03:00
parent 5e5a59d960
commit 26efd30436
6 changed files with 5 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
//! Common test utilities and helper functions to reduce duplication in tests
use tempfile::{TempDir, TempPath};
use tempfile::TempDir;
use std::fs::File;
use std::io::Write;
use std::path::PathBuf;
@@ -188,7 +188,7 @@ pub fn create_nested_temp_dir_structure(dir: &TempDir) -> (PathBuf, PathBuf, Pat
pub fn create_temp_file_with_random_binary_content(dir: &TempDir, filename: &str, size: usize) -> PathBuf {
use rand::Rng;
let mut rng = rand::thread_rng();
let random_data: Vec<u8> = (0..size).map(|_| rng.gen()).collect();
let random_data: Vec<u8> = (0..size).map(|_| rng.gen::<u8>()).collect();
create_temp_file_with_binary_content(dir, filename, &random_data)
}