Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/diskio/threaded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use std::sync::Arc;

use enum_map::{enum_map, Enum, EnumMap};
use sharded_slab::pool::{OwnedRef, OwnedRefMut};
use tracing::debug;

use super::{perform, CompletedIo, Executor, Item};
use crate::utils::notifications::Notification;
Expand Down Expand Up @@ -268,9 +269,8 @@ impl<'a> Executor for Threaded<'a> {
prev_files as u64,
));
}
#[allow(clippy::print_stderr)]
if prev_files > 50 {
eprintln!("{prev_files} deferred IO operations");
debug!("{prev_files} deferred IO operations");
}
let buf: Vec<u8> = vec![0; prev_files];
// Cheap wrap-around correctness check - we have 20k files, more than
Expand Down
7 changes: 6 additions & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#![allow(clippy::box_default, clippy::print_stdout, clippy::print_stderr)]
#![allow(
clippy::box_default,
clippy::print_stdout,
clippy::print_stderr,
clippy::dbg_macro
)]
//! Test support module; public to permit use from integration tests.

pub mod mock;
Expand Down
7 changes: 2 additions & 5 deletions src/test/mock/clitools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,8 @@ impl Config {
println!("expected.ok: true");
print_indented("expected.stdout", stdout);
print_indented("expected.stderr", stderr);
#[allow(clippy::dbg_macro)]
{
dbg!(out.stdout == stdout);
dbg!(out.stderr == stderr);
}
dbg!(out.stdout == stdout);
dbg!(out.stderr == stderr);
panic!();
}
}
Expand Down
Loading