Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyle committed Mar 25, 2024
1 parent 9d4a18f commit fadc33e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cloud_connectors/mqtt_connector/src/mqtt_connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,16 @@ mod azure_cloud_connector_tests {
mqtt_event_grid_topic: String::new(),
};

let mut request = UpdateDigitalTwinRequest::default();
request.value = Some(Value {
kind: Some(Kind::StringValue(String::new())),
});

let request = tonic::Request::new(request);
let request = UpdateDigitalTwinRequest {
value: Some(Value {
kind: Some(Kind::StringValue(String::new())),
}),
..Default::default()
};

let result = consumer_impl.update_digital_twin(request).await;
let result = consumer_impl
.update_digital_twin(tonic::Request::new(request))
.await;

assert!(result.is_err());
}
Expand Down

0 comments on commit fadc33e

Please sign in to comment.