Skip to content

Commit 7087a59

Browse files
Dorian Eikenbergrageagainsthepc
authored andcommitted
Apply clippy hints and update deps
1 parent 2495d32 commit 7087a59

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

vmicore/rust_src/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ edition = "2021"
77
crate-type = ["lib", "staticlib"]
88

99
[dependencies]
10-
tonic = "0.9.2"
11-
prost = "0.11.2"
12-
prost-types = "0.11.2"
10+
tonic = "0.11.0"
11+
prost = "0.12.3"
12+
prost-types = "0.12.3"
1313
tokio = { version = "1.22", features = ["macros", "rt-multi-thread", "net"] }
1414
cxx = "1.0"
1515
triggered = "0.1.2"
@@ -25,4 +25,4 @@ tower = "0.4.13"
2525
ctrlc = "3.4.0"
2626

2727
[build-dependencies]
28-
tonic-build = "0.9.2"
28+
tonic-build = "0.11.0"

vmicore/rust_src/src/console_logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct ConsoleLogger {
4444

4545
impl ConsoleLogger {
4646
pub fn bind(&mut self, fields: Vec<LogField>) {
47-
self.base_fields.extend(fields.into_iter());
47+
self.base_fields.extend(fields);
4848
}
4949

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

vmicore/rust_src/src/grpc_logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl GrpcLogger {
3131
}
3232

3333
pub fn bind(&mut self, fields: Vec<LogField>) {
34-
self.base_fields.extend(fields.into_iter());
34+
self.base_fields.extend(fields);
3535
}
3636

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

0 commit comments

Comments
 (0)