Repository: libbpf/libbpf-rs (language: rust)

Issue:
Accessing tag data
The definition of [Tag](https://docs.rs/libbpf-rs/latest/libbpf_rs/query/struct.Tag.html) is:

```rust
/// Bpf identifier tag
#[derive(Debug, Clone, Default)]
#[repr(C)]
pub struct Tag([u8; 8]);
```
The inner data is not marked `pub`, and I did not come across any functions that would provide access to that data. Could the inner field be marked `pub`, or could `Tag` `impl` some function to allow getting at that data?


Discussion / hints:

Fix patch:
diff --git a/libbpf-rs/src/query.rs b/libbpf-rs/src/query.rs
index f752c375..a44984f5 100644
--- a/libbpf-rs/src/query.rs
+++ b/libbpf-rs/src/query.rs
@@ -120,7 +120,7 @@ impl From<&libbpf_sys::bpf_line_info> for LineInfo {
 /// Bpf identifier tag
 #[derive(Debug, Clone, Default)]
 #[repr(C)]
-pub struct Tag([u8; 8]);
+pub struct Tag(pub [u8; 8]);
 
 /// Information about a BPF program
 #[derive(Debug, Clone)]


Test patch: