projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Steal rust-crypto's ChaCha20 implementation wholesale
[rust-lightning]
/
fuzz
/
fuzz_targets
/
utils
/
test_logger.rs
diff --git
a/fuzz/fuzz_targets/utils/test_logger.rs
b/fuzz/fuzz_targets/utils/test_logger.rs
index 2ef1196b586af79c82cde6b787098302997de38e..f828d0638f17726690c2c9b83807866c634287bd 100644
(file)
--- a/
fuzz/fuzz_targets/utils/test_logger.rs
+++ b/
fuzz/fuzz_targets/utils/test_logger.rs
@@
-4,7
+4,9
@@
pub struct TestLogger {}
impl Logger for TestLogger {
fn log(&self, record: &Record) {
impl Logger for TestLogger {
fn log(&self, record: &Record) {
- #[cfg(
any(test, not(feature = "fuzztarget"))
)]
+ #[cfg(
test
)]
println!("{:<5} [{} : {}, {}] {}", record.level.to_string(), record.module_path, record.file, record.line, record.args);
println!("{:<5} [{} : {}, {}] {}", record.level.to_string(), record.module_path, record.file, record.line, record.args);
+ #[cfg(not(test))]
+ let _ = format!("{}", record.args);
}
}
}
}