Fixed missing documentation and unused_import in mod test

Signed-off-by: Quentin JEROME <qjerome@users.noreply.github.com>
pull/529/head
Quentin JEROME 2 years ago
parent 4dc0938cac
commit 770ab66e9c

@ -1,3 +1,6 @@
//! Helper module containing higher level APIs to query
//! BTF objects.
use super::*; use super::*;
use alloc::{ use alloc::{
borrow::Cow, borrow::Cow,
@ -165,10 +168,6 @@ impl MemberPath {
MemberPath(vec![]) 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 { pub(crate) fn from_other_with_name(o: &Self, name: String) -> Self {
let mut new = o.clone(); let mut new = o.clone();
new.push_name(name); new.push_name(name);
@ -270,10 +269,8 @@ impl MemberHelper {
} }
} }
#[cfg(test)]
mod test { mod test {
use std::println;
use alloc::task;
use super::*; use super::*;

Loading…
Cancel
Save