From: Corey Farwell Date: Mon, 25 Jun 2018 02:45:07 +0000 (-0400) Subject: Utilize type param in method invocation. X-Git-Tag: tor-0.3.5.1-alpha~214^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d2e4dea109ec5a499d11a4fee4f8ca3465ad30c;p=thirdparty%2Ftor.git Utilize type param in method invocation. --- 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, }