Skip to content

Commit

Permalink
style: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SkuldNorniern committed Mar 13, 2024
1 parent 5ddb597 commit 48b1034
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions fluere-plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ impl PluginManager {
Ok(())
}).expect(format!("Error on plugin: {}", name).as_str());*/
let _ = plugins_guard.insert(std::borrow::Cow::Owned(name.clone()));
let _ = plugins_guard
.insert(std::borrow::Cow::Owned(name.clone()));
#[cfg(feature = "log")]
info!("Loaded plugin {}", name);
#[cfg(not(feature = "log"))]
Expand Down Expand Up @@ -339,4 +340,4 @@ impl Drop for PluginManager {
drop(self.plugins.lock());
drop(self.lua.lock());
}
}
}
2 changes: 1 addition & 1 deletion src/net/live_fluereflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub async fn online_packet_capture(arg: Args) {
let file_dir = "./output";
match fs::create_dir_all(<&str>::clone(&file_dir)) {
Ok(_) => debug!("Created directory: {}", file_dir),

// FIX:ASAP: Remove Panic, return io error instead
Err(error) => panic!("Problem creating directory: {:?}", error),
};
Expand Down
5 changes: 1 addition & 4 deletions src/net/parser/ports.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use crate::net::errors::NetError;

use log::debug;
use pnet::packet::{
tcp::TcpPacket,
udp::UdpPacket,
};
use pnet::packet::{tcp::TcpPacket, udp::UdpPacket};

pub fn parse_ports(protocol: u8, payload: &[u8]) -> Result<(u16, u16), NetError> {
match protocol {
Expand Down

0 comments on commit 48b1034

Please sign in to comment.