Skip to content

Commit

Permalink
rust: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Dec 5, 2023
1 parent 34da074 commit e213ce7
Show file tree
Hide file tree
Showing 136 changed files with 11,697 additions and 9,614 deletions.
4 changes: 3 additions & 1 deletion rust/derive/src/applayerevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ pub fn derive_app_layer_event(input: TokenStream) -> TokenStream {
// "crate", but if we're being used by a library or plugin user we need to reference the
// Suricata name space as "suricata". Check the CARGO_PKG_NAME environment variable to
// determine what identifier to setup.
let is_suricata = std::env::var("CARGO_PKG_NAME").map(|var| var == "suricata").unwrap_or(false);
let is_suricata = std::env::var("CARGO_PKG_NAME")
.map(|var| var == "suricata")
.unwrap_or(false);
let crate_id = if is_suricata {
syn::Ident::new("crate", proc_macro2::Span::call_site())
} else {
Expand Down
Loading

0 comments on commit e213ce7

Please sign in to comment.