diff --git a/nginx-sys/build/vendored.rs b/nginx-sys/build/vendored.rs index ed26e00..52b4acd 100644 --- a/nginx-sys/build/vendored.rs +++ b/nginx-sys/build/vendored.rs @@ -361,7 +361,7 @@ fn make_cache_dir() -> Result> { fn download(cache_dir: &Path, url: &str) -> Result> { fn proceed_with_download(file_path: &Path) -> bool { // File does not exist or is zero bytes - !file_path.exists() || file_path.metadata().map_or(false, |m| m.len() < 1) + !file_path.exists() || file_path.metadata().is_ok_and(|m| m.len() < 1) } let filename = url.split('/').last().unwrap(); let file_path = cache_dir.join(filename); @@ -544,7 +544,7 @@ fn compile_nginx(cache_dir: &Path) -> Result<(PathBuf, PathBuf), Box PartialEq<&'a Method> for Method { } } -impl<'a> PartialEq for &'a Method { +impl PartialEq for &Method { #[inline] fn eq(&self, other: &Method) -> bool { *self == other @@ -641,7 +641,7 @@ impl<'a> PartialEq<&'a str> for Method { } } -impl<'a> PartialEq for &'a str { +impl PartialEq for &str { #[inline] fn eq(&self, other: &Method) -> bool { *self == other.as_ref()