mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Utilize type param in method invocation.
This commit is contained in:
parent
59d4505749
commit
6d2e4dea10
@ -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…
Reference in New Issue
Block a user