[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Utilize type param in method invocation.
commit 6d2e4dea109ec5a499d11a4fee4f8ca3465ad30c
Author: Corey Farwell <coreyf@xxxxxxxxx>
Date: Sun Jun 24 22:45:07 2018 -0400
Utilize type param in method invocation.
---
src/rust/protover/ffi.rs | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs
index ba156cb1b..40a7354cb 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<UnvalidatedProtoEntry,_> =
- protocol_list.parse();
-
- match protocol_entry {
+ match protocol_list.parse::<UnvalidatedProtoEntry>() {
Ok(_) => 0,
Err(_) => 1,
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits