mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-24 13:44:08 +00:00
rust-agent: Remove unused macros
This addresses the following warnings:
Compiling rustjail v0.1.0 (/home/ddd/go/src/github.com/kata-containers-2.0/src/agent/rustjail)
warning: unused `#[macro_use]` import
--> rustjail/src/lib.rs:15:1
|
15 | #[macro_use]
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused macro definition
--> rustjail/src/lib.rs:38:1
|
38 | / macro_rules! sl {
39 | | () => {
40 | | slog_scope::logger().new(o!("subsystem" => "rustjail"))
41 | | };
42 | | }
| |_^
|
= note: `#[warn(unused_macros)]` on by default
Fixes: #750
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
extern crate serial_test;
|
extern crate serial_test;
|
||||||
#[macro_use]
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
@@ -37,13 +36,6 @@ extern crate oci;
|
|||||||
extern crate path_absolutize;
|
extern crate path_absolutize;
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
|
|
||||||
// Convenience macro to obtain the scope logger
|
|
||||||
macro_rules! sl {
|
|
||||||
() => {
|
|
||||||
slog_scope::logger().new(o!("subsystem" => "rustjail"))
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
pub mod capabilities;
|
pub mod capabilities;
|
||||||
pub mod cgroups;
|
pub mod cgroups;
|
||||||
pub mod container;
|
pub mod container;
|
||||||
|
|||||||
Reference in New Issue
Block a user