mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-19 07:28:10 +00:00
fix: resolve all remaining clippy warnings in examples and benchmarks including unused imports, variables, empty println statements, and enum naming conventions
This commit is contained in:
+2
-2
@@ -67,7 +67,7 @@ pub mod time {
|
||||
#[inline]
|
||||
pub fn secs_to_datetime(timestamp: u64) -> DateTime<Utc> {
|
||||
DateTime::from_timestamp(timestamp as i64, 0)
|
||||
.unwrap_or_else(|| Utc::now())
|
||||
.unwrap_or_else(Utc::now)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,7 +392,7 @@ pub mod retry {
|
||||
}
|
||||
}
|
||||
|
||||
Err(last_error.unwrap_or_else(|| PolyfillError::internal("Retry loop failed", std::io::Error::new(std::io::ErrorKind::Other, "No error captured"))))
|
||||
Err(last_error.unwrap_or_else(|| PolyfillError::internal("Retry loop failed", std::io::Error::other("No error captured"))))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user