summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorAndre Bogus <bogusandre@gmail.com>2016-04-14 01:01:16 +0200
committerAndre Bogus <bogusandre@gmail.com>2016-04-14 01:01:16 +0200
commit1c802a1959300f7ac9354a2879640927a4cccba5 (patch)
tree3407fdad05cc4d4fa7e1a695f59b562e41b93034 /src/sys
parent85c53a9ecc251d11305975435ba9b96165912326 (diff)
downloadnix-1c802a1959300f7ac9354a2879640927a4cccba5.zip
fixed a few clippy warnings
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/ptrace.rs2
-rw-r--r--src/sys/socket/addr.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/ptrace.rs b/src/sys/ptrace.rs
index 63c7482d..edbc9734 100644
--- a/src/sys/ptrace.rs
+++ b/src/sys/ptrace.rs
@@ -95,7 +95,7 @@ fn ptrace_other(request: ptrace::PtraceRequest, pid: pid_t, addr: *mut c_void, d
Errno::result(unsafe { ffi::ptrace(request, pid, addr, data) }).map(|_| 0)
}
-/// Set options, as with ptrace(PTRACE_SETOPTIONS,...).
+/// Set options, as with `ptrace(PTRACE_SETOPTIONS,...)`.
pub fn ptrace_setoptions(pid: pid_t, options: ptrace::PtraceOptions) -> Result<()> {
use self::ptrace::*;
use std::ptr;
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs
index 4854517f..22970d8b 100644
--- a/src/sys/socket/addr.rs
+++ b/src/sys/socket/addr.rs
@@ -348,10 +348,10 @@ impl fmt::Display for Ipv6Addr {
*
*/
-/// A wrapper around sockaddr_un. We track the length of sun_path,
+/// A wrapper around `sockaddr_un`. We track the length of `sun_path`,
/// because it may not be null-terminated (unconnected and abstract
/// sockets). Note that the actual sockaddr length is greater by
-/// size_of::<sa_family_t>().
+/// `size_of::<sa_family_t>()`.
#[derive(Copy)]
pub struct UnixAddr(pub libc::sockaddr_un, pub usize);