From 7087a5936dadd59b677f5f9f4a99be7f0b278b78 Mon Sep 17 00:00:00 2001 From: Dorian Eikenberg Date: Thu, 21 Mar 2024 12:01:45 +0100 Subject: [PATCH] Apply clippy hints and update deps --- vmicore/rust_src/Cargo.toml | 8 ++++---- vmicore/rust_src/src/console_logger.rs | 2 +- vmicore/rust_src/src/grpc_logger.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vmicore/rust_src/Cargo.toml b/vmicore/rust_src/Cargo.toml index 6c1bc2d2..2a8a03d8 100644 --- a/vmicore/rust_src/Cargo.toml +++ b/vmicore/rust_src/Cargo.toml @@ -7,9 +7,9 @@ edition = "2021" crate-type = ["lib", "staticlib"] [dependencies] -tonic = "0.9.2" -prost = "0.11.2" -prost-types = "0.11.2" +tonic = "0.11.0" +prost = "0.12.3" +prost-types = "0.12.3" tokio = { version = "1.22", features = ["macros", "rt-multi-thread", "net"] } cxx = "1.0" triggered = "0.1.2" @@ -25,4 +25,4 @@ tower = "0.4.13" ctrlc = "3.4.0" [build-dependencies] -tonic-build = "0.9.2" +tonic-build = "0.11.0" diff --git a/vmicore/rust_src/src/console_logger.rs b/vmicore/rust_src/src/console_logger.rs index 71e60d8e..76c1062f 100644 --- a/vmicore/rust_src/src/console_logger.rs +++ b/vmicore/rust_src/src/console_logger.rs @@ -44,7 +44,7 @@ pub struct ConsoleLogger { impl ConsoleLogger { pub fn bind(&mut self, fields: Vec) { - self.base_fields.extend(fields.into_iter()); + self.base_fields.extend(fields); } pub fn clone_base_fields(&self, capacity: usize) -> Vec { diff --git a/vmicore/rust_src/src/grpc_logger.rs b/vmicore/rust_src/src/grpc_logger.rs index a37be95e..fd150418 100644 --- a/vmicore/rust_src/src/grpc_logger.rs +++ b/vmicore/rust_src/src/grpc_logger.rs @@ -31,7 +31,7 @@ impl GrpcLogger { } pub fn bind(&mut self, fields: Vec) { - self.base_fields.extend(fields.into_iter()); + self.base_fields.extend(fields); } pub fn clone_base_fields(&self, capacity: usize) -> Vec {