Utilize type param in method invocation.

This commit is contained in:
Corey Farwell 2018-06-24 22:45:07 -04:00
parent 59d4505749
commit 6d2e4dea10

View File

@ -129,10 +129,7 @@ pub extern "C" fn protover_contains_long_protocol_names_(
Err(_) => return 1
};
let protocol_entry : Result<UnvalidatedProtoEntry,_> =
protocol_list.parse();
match protocol_entry {
match protocol_list.parse::<UnvalidatedProtoEntry>() {
Ok(_) => 0,
Err(_) => 1,
}