summaryrefslogtreecommitdiff
path: root/src/rust
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2018-06-24 22:45:07 -0400
committerCorey Farwell <coreyf@rwell.org>2018-06-24 22:45:07 -0400
commit6d2e4dea109ec5a499d11a4fee4f8ca3465ad30c (patch)
treeef1664b93ca321a3e08ada66720bdc65e65fb9ef /src/rust
parent59d4505749073f45db9a32d606b760eb9e07df69 (diff)
downloadtor-6d2e4dea109ec5a499d11a4fee4f8ca3465ad30c.tar.gz
tor-6d2e4dea109ec5a499d11a4fee4f8ca3465ad30c.zip
Utilize type param in method invocation.
Diffstat (limited to 'src/rust')
-rw-r--r--src/rust/protover/ffi.rs5
1 files changed, 1 insertions, 4 deletions
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<UnvalidatedProtoEntry,_> =
- protocol_list.parse();
-
- match protocol_entry {
+ match protocol_list.parse::<UnvalidatedProtoEntry>() {
Ok(_) => 0,
Err(_) => 1,
}