chore: Fix cargo deny warnings (#1374)
This commit is contained in:
@@ -34,7 +34,6 @@ allow = [
|
|||||||
"OpenSSL",
|
"OpenSSL",
|
||||||
"Zlib",
|
"Zlib",
|
||||||
"Unicode-DFS-2016",
|
"Unicode-DFS-2016",
|
||||||
"MPL-2.0",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[licenses.clarify]]
|
[[licenses.clarify]]
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ tonic = {path = "../tonic", features = ["tls"]}
|
|||||||
tower = {version = "0.4"}
|
tower = {version = "0.4"}
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-log = "0.1"
|
tracing-log = "0.1"
|
||||||
tracing-subscriber = {version = "0.3", features = ["env-filter"]}
|
tracing-subscriber = {version = "0.3"}
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tonic-build = {path = "../tonic-build", features = ["prost"]}
|
tonic-build = {path = "../tonic-build", features = ["prost"]}
|
||||||
|
|||||||
+1
-6
@@ -12,12 +12,7 @@ pub mod pb {
|
|||||||
use std::{default, fmt, iter};
|
use std::{default, fmt, iter};
|
||||||
|
|
||||||
pub fn trace_init() {
|
pub fn trace_init() {
|
||||||
let sub = tracing_subscriber::FmtSubscriber::builder()
|
tracing_subscriber::fmt::init();
|
||||||
.with_env_filter(tracing_subscriber::filter::EnvFilter::from_default_env())
|
|
||||||
.finish();
|
|
||||||
|
|
||||||
let _ = tracing::subscriber::set_global_default(sub);
|
|
||||||
let _ = tracing_log::LogTracer::init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn client_payload(size: usize) -> pb::Payload {
|
pub fn client_payload(size: usize) -> pb::Payload {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ futures-util = "0.3"
|
|||||||
prost = "0.11"
|
prost = "0.11"
|
||||||
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
|
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
|
||||||
tonic = {path = "../../tonic"}
|
tonic = {path = "../../tonic"}
|
||||||
tracing-subscriber = {version = "0.3", features = ["env-filter"]}
|
tracing-subscriber = {version = "0.3"}
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
async-stream = "0.3"
|
async-stream = "0.3"
|
||||||
|
|||||||
@@ -55,7 +55,5 @@ pub mod mock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn trace_init() {
|
pub fn trace_init() {
|
||||||
let _ = tracing_subscriber::FmtSubscriber::builder()
|
tracing_subscriber::fmt::init();
|
||||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
|
||||||
.try_init();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ type Stream<T> =
|
|||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn status_from_server_stream() {
|
async fn status_from_server_stream() {
|
||||||
trace_init();
|
integration_tests::trace_init();
|
||||||
|
|
||||||
struct Svc;
|
struct Svc;
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ async fn status_from_server_stream() {
|
|||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn status_from_server_stream_with_source() {
|
async fn status_from_server_stream_with_source() {
|
||||||
trace_init();
|
integration_tests::trace_init();
|
||||||
|
|
||||||
let channel = Endpoint::try_from("http://[::]:50051")
|
let channel = Endpoint::try_from("http://[::]:50051")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
@@ -193,9 +193,3 @@ async fn status_from_server_stream_with_source() {
|
|||||||
let source = error.source().unwrap();
|
let source = error.source().unwrap();
|
||||||
source.downcast_ref::<tonic::transport::Error>().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