Skip to content

Commit

Permalink
Fixup for new snmp functions
Browse files Browse the repository at this point in the history
  • Loading branch information
eminence committed Sep 23, 2023
1 parent a9b5239 commit f6c2035
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 f6c2035

Please sign in to comment.