Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion falco_event/src/types/primitive/newtypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ impl SigSet {

impl Debug for SigSet {
fn fmt(&self, fmt: &mut Formatter<'_>) -> std::fmt::Result {
write!(fmt, "{:#2x}", self.0)?;
write!(fmt, "{:#4x}", self.0)?;
if self.0 != 0 {
let mut first = true;
for sig in self.iter() {
Expand Down
2 changes: 1 addition & 1 deletion falco_plugin/src/base/wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub unsafe extern "C" fn plugin_init<P: Plugin>(
plugin.cast()
}
Err(e) => {
let error_str = format!("{:#}", &e);
let error_str = format!("{:#}", e);
log::error!("Failed to initialize plugin: {error_str}");
let plugin = Box::new(PluginWrapper::<P>::new_error(error_str));
unsafe {
Expand Down
3 changes: 1 addition & 2 deletions falco_schema_derive/src/event_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ impl EventArg {
let num = num.base10_parse().ok()?;
let (_, _, args) = event_info.args.as_ref()?;
let dirfd_arg = args.iter().nth(num)?.ident();
let method_name =
Ident::new(&format!("{}_dirfd", &self.name.value()), self.name.span());
let method_name = Ident::new(&format!("{}_dirfd", self.name.value()), self.name.span());

Some(quote!(
#[inline]
Expand Down
Loading