Kaynağa Gözat

refactor(clippy): clippy::needless_lifetimes

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 yıl önce
ebeveyn
işleme
7d77e12cf0
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/options/parser.rs

+ 2 - 2
src/options/parser.rs

@@ -494,14 +494,14 @@ impl fmt::Display for ParseError {
 }
 }
 
 
 #[cfg(unix)]
 #[cfg(unix)]
-fn os_str_to_bytes<'b>(s: &'b OsStr) ->  &'b [u8]{
+fn os_str_to_bytes(s: &OsStr) -> &[u8]{
     use std::os::unix::ffi::OsStrExt;
     use std::os::unix::ffi::OsStrExt;
 
 
     return s.as_bytes()
     return s.as_bytes()
 }
 }
 
 
 #[cfg(unix)]
 #[cfg(unix)]
-fn bytes_to_os_str<'b>(b:  &'b [u8]) ->  &'b OsStr{
+fn bytes_to_os_str(b: &[u8]) -> &OsStr{
     use std::os::unix::ffi::OsStrExt;
     use std::os::unix::ffi::OsStrExt;
 
 
     return OsStr::from_bytes(b);
     return OsStr::from_bytes(b);