Преглед изворни кода

refactor(clippy): clippy::needless_lifetimes

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen пре 2 година
родитељ
комит
7d77e12cf0
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/options/parser.rs

+ 2 - 2
src/options/parser.rs

@@ -494,14 +494,14 @@ impl fmt::Display for ParseError {
 }
 
 #[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;
 
     return s.as_bytes()
 }
 
 #[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;
 
     return OsStr::from_bytes(b);