From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH pbs 4/6] clippy fixes: casting to the same type is unnecessary
Date: Fri, 16 Jun 2023 09:35:39 +0200 [thread overview]
Message-ID: <20230616073541.28487-4-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20230616073541.28487-1-m.sandoval@proxmox.com>
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
Signed-off-by: Maximiliano Sandoval <m.sandoval@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
next prev parent reply other threads:[~2023-06-16 7:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-16 7:35 [pbs-devel] [PATCH pbs 1/6] quemu_helper: run rustfmt Maximiliano Sandoval
2023-06-16 7:35 ` [pbs-devel] [PATCH pbs 2/6] clippy fixes: the borrowed expression implements the required traits Maximiliano Sandoval
2023-06-16 7:56 ` Thomas Lamprecht
2023-06-16 7:35 ` [pbs-devel] [PATCH pbs 3/6] clippy fixes: use of ok_or followed by a function call Maximiliano Sandoval
2023-06-16 7:35 ` Maximiliano Sandoval [this message]
2023-06-16 7:35 ` [pbs-devel] [PATCH pbs 5/6] clippy fixes: Box::new(_) of default value Maximiliano Sandoval
2023-06-16 7:35 ` [pbs-devel] [PATCH pbs 6/6] clippy fixes: deref which would be done by auto-deref Maximiliano Sandoval
2023-06-16 8:02 ` [pbs-devel] applied: [PATCH pbs 1/6] quemu_helper: run rustfmt Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230616073541.28487-4-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox