chore: Fix cargo deny warnings (#1374)

This commit is contained in:
Lucio Franco
2023-04-24 17:41:43 +00:00
committed by GitHub
parent 4942dd4a43
commit c09fc23088
6 changed files with 6 additions and 20 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ futures-util = "0.3"
prost = "0.11"
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
tonic = {path = "../../tonic"}
tracing-subscriber = {version = "0.3", features = ["env-filter"]}
tracing-subscriber = {version = "0.3"}
[dev-dependencies]
async-stream = "0.3"
+1 -3
View File
@@ -55,7 +55,5 @@ pub mod mock {
}
pub fn trace_init() {
let _ = tracing_subscriber::FmtSubscriber::builder()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.try_init();
tracing_subscriber::fmt::init();
}
+2 -8
View File
@@ -130,7 +130,7 @@ type Stream<T> =
#[tokio::test]
async fn status_from_server_stream() {
trace_init();
integration_tests::trace_init();
struct Svc;
@@ -178,7 +178,7 @@ async fn status_from_server_stream() {
#[tokio::test]
async fn status_from_server_stream_with_source() {
trace_init();
integration_tests::trace_init();
let channel = Endpoint::try_from("http://[::]:50051")
.unwrap()
@@ -193,9 +193,3 @@ async fn status_from_server_stream_with_source() {
let source = error.source().unwrap();
source.downcast_ref::<tonic::transport::Error>().unwrap();
}
fn trace_init() {
let _ = tracing_subscriber::FmtSubscriber::builder()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.try_init();
}