aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-03-21 03:08:35 +0000
committerIsis Lovecruft <isis@torproject.org>2018-04-02 19:36:26 +0000
commitfd127bfbfa13d407e5fb5d22a567f51a30af4c2e (patch)
treefe6ef260917b134774f6118967823c155ee572a2
parent32638ed4a6c47a03b899cd09582888674ae3bf08 (diff)
downloadtor-fd127bfbfa13d407e5fb5d22a567f51a30af4c2e.tar.gz
tor-fd127bfbfa13d407e5fb5d22a567f51a30af4c2e.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()`.
-rw-r--r--src/rust/protover/ffi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs
index 13d64821f4..3632f5de8f 100644
--- a/src/rust/protover/ffi.rs
+++ b/src/rust/protover/ffi.rs
@@ -218,7 +218,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 };
}