From: Isis Lovecruft Date: Wed, 21 Mar 2018 03:08:35 +0000 (+0000) Subject: rust: Refactor Rust implementation of protover_is_supported_here(). X-Git-Tag: tor-0.3.3.5-rc~18^2~1^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd127bfbfa13d407e5fb5d22a567f51a30af4c2e;p=thirdparty%2Ftor.git 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()`. --- 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 }; }