From 24d95c83a63a4bc6c41b87f643b8965e24a29ddc Mon Sep 17 00:00:00 2001 From: kohashimoto Date: Wed, 3 Jan 2024 00:21:48 +0900 Subject: [PATCH] refactor: clippy --- src/event/kubernetes/api_resources.rs | 2 -- src/event/kubernetes/pod/log/log_streamer.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/event/kubernetes/api_resources.rs b/src/event/kubernetes/api_resources.rs index e1ca9806..82b0e0a2 100644 --- a/src/event/kubernetes/api_resources.rs +++ b/src/event/kubernetes/api_resources.rs @@ -453,8 +453,6 @@ fn merge_tables(fetch_data: Vec, insert_ns: bool) -> Table { return Table::default(); } - let fetch_data = fetch_data; - let mut base_table = fetch_data[0].table.clone(); let base_ns = &fetch_data[0].namespace; diff --git a/src/event/kubernetes/pod/log/log_streamer.rs b/src/event/kubernetes/pod/log/log_streamer.rs index 8c8303a2..8c56e306 100644 --- a/src/event/kubernetes/pod/log/log_streamer.rs +++ b/src/event/kubernetes/pod/log/log_streamer.rs @@ -297,7 +297,7 @@ impl LogStreamer { follow: true, container: Some(self.container_name().to_string()), timestamps: true, - since_time: last_timestamp.clone(), + since_time: *last_timestamp, ..Default::default() } }