mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
Utilize type param in method invocation.
This commit is contained in:
parent
59d4505749
commit
6d2e4dea10
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue