[pbs-devel] [PATCH pbs 4/6] clippy fixes: casting to the same type is unnecessary
Maximiliano Sandoval
m.sandoval at proxmox.com
Fri Jun 16 09:35:39 CEST 2023
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
src/tape/media_pool.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/tape/media_pool.rs b/src/tape/media_pool.rs
index afb27cab..8f2b0add 100644
--- a/src/tape/media_pool.rs
+++ b/src/tape/media_pool.rs
@@ -279,9 +279,7 @@ impl MediaPool {
.inventory
.media_set_start_time(self.current_media_set.uuid())
{
- if let Ok(Some(alloc_time)) =
- event.compute_next_event(set_start_time as i64)
- {
+ if let Ok(Some(alloc_time)) = event.compute_next_event(set_start_time) {
if current_time >= alloc_time {
create_new_set =
Some(String::from("policy CreateAt event triggered"));
--
2.39.2
More information about the pbs-devel
mailing list