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
|
Err(_) => return 1
|
||||||
};
|
};
|
||||||
|
|
||||||
let protocol_entry : Result<UnvalidatedProtoEntry,_> =
|
match protocol_list.parse::<UnvalidatedProtoEntry>() {
|
||||||
protocol_list.parse();
|
|
||||||
|
|
||||||
match protocol_entry {
|
|
||||||
Ok(_) => 0,
|
Ok(_) => 0,
|
||||||
Err(_) => 1,
|
Err(_) => 1,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user