mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-20 13:06:20 +02:00
rust: Refactor Rust implementation of protover_is_supported_here().
It was changed to take borrows instead of taking ownership. * REFACTOR `protover::ffi::protover_is_supported_here()` to use changed method signature on `protover::is_supported_here()`.
This commit is contained in:
parent
6f252e0986
commit
9766d53cf9
@ -204,7 +204,7 @@ pub extern "C" fn protover_is_supported_here(
|
||||
Err(_) => return 0,
|
||||
};
|
||||
|
||||
let is_supported = is_supported_here(protocol, version);
|
||||
let is_supported = is_supported_here(&protocol, &version);
|
||||
|
||||
return if is_supported { 1 } else { 0 };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user