chore: Fix cargo deny warnings (#1374)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user