From 770ab66e9c343fcc194d5a4e93f8c98446cab70e Mon Sep 17 00:00:00 2001 From: Quentin JEROME Date: Thu, 23 Feb 2023 13:38:16 +0100 Subject: [PATCH] Fixed missing documentation and unused_import in mod test Signed-off-by: Quentin JEROME --- aya-obj/src/btf/helpers.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/aya-obj/src/btf/helpers.rs b/aya-obj/src/btf/helpers.rs index 87c492ad..aa7a5a72 100644 --- a/aya-obj/src/btf/helpers.rs +++ b/aya-obj/src/btf/helpers.rs @@ -1,3 +1,6 @@ +//! Helper module containing higher level APIs to query +//! BTF objects. + use super::*; use alloc::{ borrow::Cow, @@ -165,10 +168,6 @@ impl MemberPath { MemberPath(vec![]) } - pub(crate) fn with_struct_name(struct_name: String) -> Self { - MemberPath(vec![struct_name]) - } - pub(crate) fn from_other_with_name(o: &Self, name: String) -> Self { let mut new = o.clone(); new.push_name(name); @@ -270,10 +269,8 @@ impl MemberHelper { } } +#[cfg(test)] mod test { - use std::println; - - use alloc::task; use super::*;