Add .idea to .gitignore to ignore IDE-specific files

This commit is contained in:
elipeter 2025-06-16 23:52:39 +02:00
parent 0b97f70bde
commit 33c819bd3a
2 changed files with 2 additions and 11 deletions

View file

@ -156,6 +156,7 @@ impl Default for PerformanceConfig {
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(default)]
#[derive(Default)]
pub struct Config {
pub scanner: ScannerConfig,
pub database: DatabaseConfig,
@ -163,16 +164,6 @@ pub struct Config {
pub performance: PerformanceConfig,
}
impl Default for Config {
fn default() -> Self {
Self {
scanner: ScannerConfig::default(),
database: DatabaseConfig::default(),
output: OutputConfig::default(),
performance: PerformanceConfig::default(),
}
}
}
impl Config {
pub fn load(

View file

@ -76,7 +76,7 @@ pub fn spawn_senders(
let mut b = Batcher { tx: tx.clone(), batch: Vec::with_capacity(BATCH_SIZE) };
match entry {
Ok(e) if e.file_type().map_or(false, |ft| ft.is_file()) => {
Ok(e) if e.file_type().is_some_and(|ft| ft.is_file()) => {
b.push(e.into_path());
if batch.len() == BATCH_SIZE {
let _ = tx.send(std::mem::take(&mut batch));