diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs index ba156cb1ba..40a7354cbf 100644 --- a/src/rust/protover/ffi.rs +++ b/src/rust/protover/ffi.rs @@ -129,10 +129,7 @@ pub extern "C" fn protover_contains_long_protocol_names_( Err(_) => return 1 }; - let protocol_entry : Result = - protocol_list.parse(); - - match protocol_entry { + match protocol_list.parse::() { Ok(_) => 0, Err(_) => 1, }