We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 881dc87 commit 296b258Copy full SHA for 296b258
tonic-build/src/prost.rs
@@ -172,7 +172,7 @@ impl crate::Method for TonicBuildMethod {
172
let convert_type = |proto_type: &str, rust_type: &str| -> TokenStream {
173
if (is_google_type(proto_type) && !compile_well_known_types)
174
|| rust_type.starts_with("::")
175
- || NON_PATH_TYPE_ALLOWLIST.iter().any(|ty| *ty == rust_type)
+ || NON_PATH_TYPE_ALLOWLIST.contains(&rust_type)
176
{
177
rust_type.parse::<TokenStream>().unwrap()
178
} else if rust_type.starts_with("crate::") {
0 commit comments