Skip to content

Commit

Permalink
Apply clippy hints and update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian Eikenberg committed Mar 21, 2024
1 parent ea42b79 commit a8ff123
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions vmicore/rust_src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -25,4 +25,4 @@ tower = "0.4.13"
ctrlc = "3.4.0"

[build-dependencies]
tonic-build = "0.9.2"
tonic-build = "0.11.0"
2 changes: 1 addition & 1 deletion vmicore/rust_src/src/console_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct ConsoleLogger {

impl ConsoleLogger {
pub fn bind(&mut self, fields: Vec<LogField>) {
self.base_fields.extend(fields.into_iter());
self.base_fields.extend(fields);
}

pub fn clone_base_fields(&self, capacity: usize) -> Vec<LogField> {
Expand Down
2 changes: 1 addition & 1 deletion vmicore/rust_src/src/grpc_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl GrpcLogger {
}

pub fn bind(&mut self, fields: Vec<LogField>) {
self.base_fields.extend(fields.into_iter());
self.base_fields.extend(fields);
}

pub fn clone_base_fields(&self, capacity: usize) -> Vec<LogField> {
Expand Down

0 comments on commit a8ff123

Please sign in to comment.