There was an error while loading. Please reload this page.
1 parent 83341d7 commit dafb830Copy full SHA for dafb830
1 file changed
rattan-core/src/core.rs
@@ -363,7 +363,7 @@ where
363
#[cfg(feature = "packet-dump")]
364
if let Ok(path) = std::env::var("PACKET_DUMP_FILE") {
365
let mut file_out = File::create(&path)
366
- .unwrap_or_else(|_| panic!("Error creating packet dump file {}", &path));
+ .unwrap_or_else(|_| panic!("Error creating packet dump file {}", path));
367
file_out
368
.write_all(self.pcap_writer.lock().unwrap().get_mut())
369
.unwrap();
0 commit comments