Skip to content

Commit 296b258

Browse files
committed
chore(build): Use idiomatic api
1 parent 881dc87 commit 296b258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tonic-build/src/prost.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl crate::Method for TonicBuildMethod {
172172
let convert_type = |proto_type: &str, rust_type: &str| -> TokenStream {
173173
if (is_google_type(proto_type) && !compile_well_known_types)
174174
|| rust_type.starts_with("::")
175-
|| NON_PATH_TYPE_ALLOWLIST.iter().any(|ty| *ty == rust_type)
175+
|| NON_PATH_TYPE_ALLOWLIST.contains(&rust_type)
176176
{
177177
rust_type.parse::<TokenStream>().unwrap()
178178
} else if rust_type.starts_with("crate::") {

0 commit comments

Comments
 (0)