diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-03-21 03:08:35 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-04-02 19:20:35 +0000 |
commit | 9766d53cf990432f25fb70916fe9b165f1d4a36d (patch) | |
tree | a496474d5ed9927dab660124bc3a66dd249ae197 /src/rust | |
parent | 6f252e098637bbac87b4ad99ece7fa4a7e404cdb (diff) | |
download | tor-9766d53cf990432f25fb70916fe9b165f1d4a36d.tar.gz tor-9766d53cf990432f25fb70916fe9b165f1d4a36d.zip |
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()`.
Diffstat (limited to 'src/rust')
-rw-r--r-- | src/rust/protover/ffi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs index 780fe6963b..44c65114e3 100644 --- a/src/rust/protover/ffi.rs +++ b/src/rust/protover/ffi.rs @@ -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 }; } |