aboutsummaryrefslogtreecommitdiff
path: root/src/tty.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-16 22:13:51 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-16 22:13:51 -0800
commitdc918ae71a5e6c78a77994d7ce106a2253918c54 (patch)
tree537c7d13443e18ed657398f4eca0bf921ef4ac5e /src/tty.rs
parent3b995ff87a54239ecacb95d51f65c17504a8d22c (diff)
downloadalacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.tar.gz
alacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.zip
Rustup and clippy
All of the changes in this commit are due to clippy lints.
Diffstat (limited to 'src/tty.rs')
-rw-r--r--src/tty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty.rs b/src/tty.rs
index 667daf04..b98d2210 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -162,7 +162,7 @@ struct Passwd<'a> {
/// # Unsafety
///
/// If `buf` is changed while `Passwd` is alive, bad thing will almost certainly happen.
-fn get_pw_entry<'a>(buf: &'a mut [i8; 1024]) -> Passwd<'a> {
+fn get_pw_entry(buf: &mut [i8; 1024]) -> Passwd {
// Create zeroed passwd struct
let mut entry: libc::passwd = unsafe { ::std::mem::uninitialized() };