Fix debug panic in onion utils on large custom TLVs or metadata.
[rust-lightning] / fuzz / src / full_stack.rs
index 57c78e76d6bcd675f41cb437613981129dc6469c..725f83af9842caf79e013cf0b1d6edb1bb985d72 100644 (file)
@@ -728,7 +728,7 @@ mod tests {
                pub lines: Mutex<HashMap<(String, String), usize>>,
        }
        impl Logger for TrackingLogger {
-               fn log(&self, record: &Record) {
+               fn log(&self, record: Record) {
                        *self.lines.lock().unwrap().entry((record.module_path.to_string(), format!("{}", record.args))).or_insert(0) += 1;
                        println!("{:<5} [{} : {}, {}] {}", record.level.to_string(), record.module_path, record.file, record.line, record.args);
                }