Skip to content

Commit

Permalink
Merge pull request #285 from eminence/snmp_fixup
Browse files Browse the repository at this point in the history
Fixup for new snmp functions
  • Loading branch information
eminence authored Sep 23, 2023
2 parents a9b5239 + f6c2035 commit c3aee30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions procfs/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,13 +790,13 @@ impl Process {
/// Reads the network management information by Simple Network Management Protocol from the
/// process net namespace
pub fn snmp(&self) -> ProcResult<net::Snmp> {
self.read("net/snmp").map(|net::Snmp(e)| e)
self.read("net/snmp")
}

/// Reads the network management information of IPv6 by Simple Network Management Protocol from
/// the process net namespace
pub fn snmp6(&self) -> ProcResult<net::Snmp6> {
self.read("net/snmp6").map(|net::Snmp6(e)| e)
self.read("net/snmp6")
}

/// Opens a file to the process's memory (`/proc/<pid>/mem`).
Expand Down

0 comments on commit c3aee30

Please sign in to comment.