From c35eadc34bd2cce8e0dea60568657b786a6b2def Mon Sep 17 00:00:00 2001 From: Dmitry Savintsev Date: Mon, 24 Jan 2022 11:18:51 +0100 Subject: [PATCH] avoid 'cargo fmt' diffs in generated code --- {{project-name}}-common/src/lib.rs | 2 +- {{project-name}}/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{project-name}}-common/src/lib.rs b/{{project-name}}-common/src/lib.rs index 34a2a6a..4100b5e 100644 --- a/{{project-name}}-common/src/lib.rs +++ b/{{project-name}}-common/src/lib.rs @@ -12,4 +12,4 @@ pub struct SockKey { #[cfg(feature = "user")] unsafe impl aya::Pod for SockKey {} -{%- endif -%} \ No newline at end of file +{%- endif -%} diff --git a/{{project-name}}/src/main.rs b/{{project-name}}/src/main.rs index 10ca1b2..26eeb89 100644 --- a/{{project-name}}/src/main.rs +++ b/{{project-name}}/src/main.rs @@ -1,4 +1,4 @@ -use aya::{Bpf, include_bytes_aligned}; +use aya::{include_bytes_aligned, Bpf}; {% case program_type -%} {%- when "kprobe", "kretprobe" -%} use aya::programs::KProbe;