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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user